aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-10-01 10:39:03 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-10-01 10:39:03 +0900
commit322c5704e5ab8cc9bc3cfffecd3b06641d95f2b4 (patch)
treedd9faabfe6e89f64a1a7bbbf9dd1f2a0690e28f8 /activerecord/CHANGELOG.md
parent28ac0b30f24ce4d4da8a21da06d2f84ad4fce3bf (diff)
parent5e4c22dfbb6dad676f74ded50b8c2536834a46a7 (diff)
downloadrails-322c5704e5ab8cc9bc3cfffecd3b06641d95f2b4.tar.gz
rails-322c5704e5ab8cc9bc3cfffecd3b06641d95f2b4.tar.bz2
rails-322c5704e5ab8cc9bc3cfffecd3b06641d95f2b4.zip
Merge pull request #23593 from meinac/add_index_option_for_change_table
index option added for change_table migrations
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 7bcf755258..96fd6a62c6 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,15 @@
+* Added `index` option for `change_table` migration helpers.
+ With this change you can create indexes while adding new
+ columns into the existing tables.
+
+ Example:
+
+ change_table(:languages) do |t|
+ t.string :country_code, index: true
+ end
+
+ *Mehmet Emin İNAÇ*
+
* Fix `transaction` reverting for migrations.
Before: Commands inside a `transaction` in a reverted migration ran uninverted.