Reputation: 5754
I removed several tables in my Rails database by running rails generate migration RemoveObjects
and then ran rake db:migrate
to complete the migration, however I am not seeing the change reflected in my schema.rb file.
What else should I do to remove references to these object from that file?
Upvotes: 1
Views: 1551
Reputation: 401
This migration will! You probably made a mistake inside the migration itself.
class DropTables < ActiveRecord::Migration
def up
drop_table :table_name
end
def down
raise ActiveRecord::IrreversibleMigration
end
end
Upvotes: 1