From 31c081a19f504e82cd51453fa8ce2afff2dfec5f Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Tue, 7 Jun 2011 11:38:32 -0700 Subject: [PATCH] Actually take out the mongo_ids --- db/migrate/20110606192307_drop_mongo_ids.rb | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 db/migrate/20110606192307_drop_mongo_ids.rb diff --git a/db/migrate/20110606192307_drop_mongo_ids.rb b/db/migrate/20110606192307_drop_mongo_ids.rb new file mode 100644 index 000000000..159a1f07e --- /dev/null +++ b/db/migrate/20110606192307_drop_mongo_ids.rb @@ -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