re-enable db:schema:dump so db:migrate:redo dumps the schema after migrating back up

Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1412 state:committed]
This commit is contained in:
Will Bryant 2008-11-19 22:44:54 +13:00 committed by Michael Koziarski
parent 1fe9d6cc88
commit ba146a84d0
1 changed files with 1 additions and 0 deletions

View File

@ -250,6 +250,7 @@ namespace :db do
File.open(ENV['SCHEMA'] || "#{RAILS_ROOT}/db/schema.rb", "w") do |file|
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, file)
end
Rake::Task["db:schema:dump"].reenable
end
desc "Load a schema.rb file into the database"