diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-03-29 23:36:22 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-03-29 23:36:22 -0300 |
commit | 6f5e18565c169fcf9b6ec8a507b0fea3eee069b7 (patch) | |
tree | 91d5e673077d08310bdb79dfb4c0fbf2e181fc8a | |
parent | 1fee849d9329ebb26715c5ffcd72ce6c305df5f3 (diff) | |
parent | f2987ceac08c749320f24fd81b1e3f775f145e81 (diff) | |
download | rails-6f5e18565c169fcf9b6ec8a507b0fea3eee069b7.tar.gz rails-6f5e18565c169fcf9b6ec8a507b0fea3eee069b7.tar.bz2 rails-6f5e18565c169fcf9b6ec8a507b0fea3eee069b7.zip |
Merge pull request #24327 from bogdanvlviv/patch-2
Update compatibility.rb
-rw-r--r-- | activerecord/lib/active_record/migration/compatibility.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration/compatibility.rb b/activerecord/lib/active_record/migration/compatibility.rb index 09d55adcd7..a20d7e0820 100644 --- a/activerecord/lib/active_record/migration/compatibility.rb +++ b/activerecord/lib/active_record/migration/compatibility.rb @@ -57,7 +57,7 @@ module ActiveRecord def index_exists?(table_name, column_name, options = {}) column_names = Array(column_name).map(&:to_s) options[:name] = - if options.key?(:name).present? + if options[:name].present? options[:name].to_s else index_name(table_name, column: column_names) |