Permalink
Browse files

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...
1 parent 1fe9d6c commit ba146a84d0ed8a886fdc6b6794ce99a9d37c0190 @willbryant willbryant committed with NZKoz Nov 19, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/tasks/databases.rake
View
1 railties/lib/tasks/databases.rake
@@ -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"

0 comments on commit ba146a8

Please sign in to comment.