aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-06-30 16:32:59 +0200
committerYves Senn <yves.senn@gmail.com>2015-06-30 16:36:03 +0200
commit2183caa24a678395c4367b1dedee583069fb1797 (patch)
tree4ed6d74c15c7dfb740c44374cc6c4ce99bca9044 /activerecord/CHANGELOG.md
parenta8f250a22c6278946e9ee519d99e2ce0e8ab4652 (diff)
downloadrails-2183caa24a678395c4367b1dedee583069fb1797.tar.gz
rails-2183caa24a678395c4367b1dedee583069fb1797.tar.bz2
rails-2183caa24a678395c4367b1dedee583069fb1797.zip
`dump_schema_after_migration` applies migration tasks other than db:migrate
Closes #20743. The task `db:_dump` now only dumps the schema if `ActiveRecord::Base.dump_schema_after_migration` is true. This has effects: - `db:migrate:up` - `db:migrate:down` - `db:forward` - `db:rollback`
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 794bb779fa..109f6f3cd4 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,10 @@
+* `ActiveRecord::Base.dump_schema_after_migration` applies migration tasks
+ other than `db:migrate`. (eg. `db:rollback`, `db:migrate:dup`, ...)
+
+ Fixes #20743.
+
+ *Yves Senn*
+
* Add alternate syntax to make `change_column_default` reversible.
User can pass in `:from` and `:to` to make `change_column_default` command