diff options
author | Bogdan <bogdanvlviv@gmail.com> | 2016-03-26 11:13:17 +0200 |
---|---|---|
committer | Bogdan <bogdanvlviv@gmail.com> | 2016-03-26 11:13:17 +0200 |
commit | f2987ceac08c749320f24fd81b1e3f775f145e81 (patch) | |
tree | 3814e1da53a8723a425e83200582247830f72ea9 /activerecord/lib/active_record/migration | |
parent | 30bb2d80b67696c5f35ee1d0479e0fc481726043 (diff) | |
download | rails-f2987ceac08c749320f24fd81b1e3f775f145e81.tar.gz rails-f2987ceac08c749320f24fd81b1e3f775f145e81.tar.bz2 rails-f2987ceac08c749320f24fd81b1e3f775f145e81.zip |
Update compatibility.rb
Diffstat (limited to 'activerecord/lib/active_record/migration')
-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) |