Actually take out the mongo_ids

This commit is contained in:
Raphael Sofaer 2011-06-07 11:38:32 -07:00
parent 96fc104218
commit 31c081a19f

View file

@ -0,0 +1,29 @@
class DropMongoIds < ActiveRecord::Migration
def self.up
remove_column :aspects, :mongo_id
remove_column :aspects, :user_mongo_id
remove_column :comments, :mongo_id
remove_column :contacts, :mongo_id
remove_column :invitations, :mongo_id
remove_column :people, :mongo_id
remove_column :posts, :mongo_id
remove_column :profiles, :mongo_id
remove_column :services, :mongo_id
remove_column :services, :user_mongo_id
remove_column :users, :mongo_id
end
def self.down
add_column :users, :mongo_id
add_column :services, :user_mongo_id
add_column :services, :mongo_id
add_column :profiles, :mongo_id
add_column :posts, :mongo_id
add_column :people, :mongo_id
add_column :invitations, :mongo_id
add_column :contacts, :mongo_id
add_column :comments, :mongo_id
add_column :aspects, :user_mongo_id
add_column :aspects, :mongo_id
end
end