aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-08 10:35:16 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-08 10:35:16 -0300
commitba6b3c165f121d080fe59cf227c9823e0bebc186 (patch)
treebcd857b3ea176f4ee20f90ce377d7a5a71389eef /activerecord/CHANGELOG.md
parent22f31214a01eb5ad39adf18ca3f7c53ae100f971 (diff)
parentb6226c3cfb0344e8973c92bddf8276ff1d26cd08 (diff)
downloadrails-ba6b3c165f121d080fe59cf227c9823e0bebc186.tar.gz
rails-ba6b3c165f121d080fe59cf227c9823e0bebc186.tar.bz2
rails-ba6b3c165f121d080fe59cf227c9823e0bebc186.zip
Merge pull request #8868 from tehgeekmeister/master
Use the index name explicitly provided in a migration when reverting. Fixes #8868 Conflicts: activerecord/CHANGELOG.md
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 4916ff4523..2db3c0cdee 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,16 @@
## Rails 4.0.0 (unreleased) ##
+* When `:name` option is provided to `remove_index`, use it if there is no
+ index by the conventional name.
+
+ For example, previously if an index was removed like so
+ `remove_index :values, column: :value, name: 'a_different_name'`
+ the generated SQL would not contain the specified index name,
+ and hence the migration would fail.
+ Fixes #8858.
+
+ *Ezekiel Smithburg*
+
* Created block to by-pass the prepared statement bindings.
This will allow to compose fragments of large SQL statements to
avoid multiple round-trips between Ruby and the DB.