aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railties
diff options
context:
space:
mode:
authorEmil Soman <emil.soman@gmail.com>2014-02-05 13:02:38 +0530
committerEmil Soman <emil.soman@gmail.com>2014-02-06 17:38:31 +0530
commit8806768e9f1a2648085f7826d9a0032457182bdb (patch)
tree95ec57462acee1c0b0c86c3e028345ece70d50ea /activerecord/lib/active_record/railties
parent90794325cfcc0502398c23a9f8db0017270121a7 (diff)
downloadrails-8806768e9f1a2648085f7826d9a0032457182bdb.tar.gz
rails-8806768e9f1a2648085f7826d9a0032457182bdb.tar.bz2
rails-8806768e9f1a2648085f7826d9a0032457182bdb.zip
Add config to disable schema dump after migration
* Add a config on Active Record named `dump_schema_after_migration` * Schema dump doesn't happen if the config is set to false * Set default value of the config to true * Set config in generated production environment file to false * Update configuration guide * Update CHANGELOG
Diffstat (limited to 'activerecord/lib/active_record/railties')
-rw-r--r--activerecord/lib/active_record/railties/databases.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake
index 561387a179..9be734e88e 100644
--- a/activerecord/lib/active_record/railties/databases.rake
+++ b/activerecord/lib/active_record/railties/databases.rake
@@ -34,7 +34,7 @@ db_namespace = namespace :db do
ActiveRecord::Migrator.migrate(ActiveRecord::Migrator.migrations_paths, ENV["VERSION"] ? ENV["VERSION"].to_i : nil) do |migration|
ENV["SCOPE"].blank? || (ENV["SCOPE"] == migration.scope)
end
- db_namespace['_dump'].invoke
+ db_namespace['_dump'].invoke if ActiveRecord::Base.dump_schema_after_migration
end
task :_dump do