diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-02 19:51:06 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-02 20:03:26 -0200 |
commit | 7042fe2f8428b713894601a9bc9bdcdbcdbfb37b (patch) | |
tree | 5f0bc8410db0395c996d5a85e9a2416910b371c4 /activerecord/CHANGELOG.md | |
parent | 96bcef947bf713b7d9fc88f26dff69f568111262 (diff) | |
download | rails-7042fe2f8428b713894601a9bc9bdcdbcdbfb37b.tar.gz rails-7042fe2f8428b713894601a9bc9bdcdbcdbfb37b.tar.bz2 rails-7042fe2f8428b713894601a9bc9bdcdbcdbfb37b.zip |
Deprecate passing a string as third argument of `add_index`
This was there due historical reasons since
7dc45818dc43c163700efc9896a0f3feafa31138 to give the user the
possibility to create unique indexes passing "UNIQUE" as the third
argument
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index da149dac54..28d8b066e0 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,12 @@ ## Rails 4.0.0 (unreleased) ## +* Deprecate the possibility to pass a string as third argument of `add_index`. + Pass `unique: true` instead. + + add_index(:users, :organization_id, unique: true) + + *Rafael Mendonça França* + * Raise an `ArgumentError` when passing an invalid option to `add_index`. *Rafael Mendonça França* |