Skip to content

Commit

Permalink
re-enable db:schema:dump so db:migrate:redo dumps the schema after mi…
Browse files Browse the repository at this point in the history
…grating back up

Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1412 state:committed]
  • Loading branch information
willbryant authored and NZKoz committed Feb 6, 2009
1 parent 1fe9d6c commit ba146a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/tasks/databases.rake
Expand Up @@ -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"
Expand Down

0 comments on commit ba146a8

Please sign in to comment.