Skip to content
This repository
Browse code

re-enable db:schema:dump so db:migrate:redo dumps the schema after mi…

…grating back up

Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1412 state:committed]
  • Loading branch information...
commit ba146a84d0ed8a886fdc6b6794ce99a9d37c0190 1 parent 1fe9d6c
Will Bryant willbryant authored NZKoz committed

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  railties/lib/tasks/databases.rake
1  railties/lib/tasks/databases.rake
@@ -250,6 +250,7 @@ namespace :db do
250 250 File.open(ENV['SCHEMA'] || "#{RAILS_ROOT}/db/schema.rb", "w") do |file|
251 251 ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, file)
252 252 end
  253 + Rake::Task["db:schema:dump"].reenable
253 254 end
254 255
255 256 desc "Load a schema.rb file into the database"

0 comments on commit ba146a8

Please sign in to comment.
Something went wrong with that request. Please try again.