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:
parent
1fe9d6cc88
commit
ba146a84d0
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue