X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/effb1b7f4170bb7244c4dfffcbe6134fe00e2bc4..a859fe1acf600640b922ac0a160b4a993d35778c:/db/migrate/20111212183945_add_lowercase_user_indexes.rb diff --git a/db/migrate/20111212183945_add_lowercase_user_indexes.rb b/db/migrate/20111212183945_add_lowercase_user_indexes.rb index 7d1a5e9a9..b2c7f6fb1 100644 --- a/db/migrate/20111212183945_add_lowercase_user_indexes.rb +++ b/db/migrate/20111212183945_add_lowercase_user_indexes.rb @@ -1,9 +1,7 @@ -require "migrate" - -class AddLowercaseUserIndexes < ActiveRecord::Migration[5.0] +class AddLowercaseUserIndexes < ActiveRecord::Migration[4.2] def up - add_index :users, [], :columns => "LOWER(display_name)", :name => "users_display_name_lower_idx" - add_index :users, [], :columns => "LOWER(email)", :name => "users_email_lower_idx" + add_index :users, "LOWER(display_name)", :name => "users_display_name_lower_idx" + add_index :users, "LOWER(email)", :name => "users_email_lower_idx" end def down