Skip to content

Commit

Permalink
Update compatibility.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanvlviv committed Mar 26, 2016
1 parent 30bb2d8 commit f2987ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/migration/compatibility.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def add_timestamps(*, **options)
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)
Expand Down

0 comments on commit f2987ce

Please sign in to comment.