Actually take out the mongo_ids
This commit is contained in:
parent
96fc104218
commit
31c081a19f
1 changed files with 29 additions and 0 deletions
29
db/migrate/20110606192307_drop_mongo_ids.rb
Normal file
29
db/migrate/20110606192307_drop_mongo_ids.rb
Normal 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
|
||||||
Loading…
Reference in a new issue