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