aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2017-09-26 00:10:17 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2017-11-06 22:40:10 +0000
commit90fe2a42f0b68a66e970169d38e91a0126de7d3e (patch)
tree1dfbb41a911c19f1494d495ce4b22d055300bfb1 /activerecord/CHANGELOG.md
parent63f0c04850dd0bcdc7d35266e81fa1a7778570a8 (diff)
downloadrails-90fe2a42f0b68a66e970169d38e91a0126de7d3e.tar.gz
rails-90fe2a42f0b68a66e970169d38e91a0126de7d3e.tar.bz2
rails-90fe2a42f0b68a66e970169d38e91a0126de7d3e.zip
Fix `bin/rails db:migrate` with specified `VERSION`
Ensure that `bin/rails db:migrate` with specified `VERSION` reverts all migrations only if `VERSION` is `0`. Raise error if target migration doesn't exist.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 4aa7ecfc7e..e6a41ec281 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,11 @@
+* Fix `bin/rails db:migrate` with specified `VERSION`.
+ `bin/rails db:migrate` with empty VERSION behaves as without `VERSION`.
+ Check a format of `VERSION`: Allow a migration version number
+ or name of a migration file. Raise error if format of `VERSION` is invalid.
+ Raise error if target migration doesn't exist.
+
+ *bogdanvlviv*
+
* Fixed a bug where column orders for an index weren't written to
db/schema.rb when using the sqlite adapter.