2019-10-24 20:57:34 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AmendOauth2UserInfoIndex < ActiveRecord::Migration[6.0]
|
|
|
|
def up
|
|
|
|
# remove old index which may have been unique
|
|
|
|
execute "DROP INDEX index_oauth2_user_infos_on_user_id_and_provider"
|
|
|
|
add_index :oauth2_user_infos, %i[user_id provider]
|
|
|
|
end
|
2024-10-25 03:13:06 -04:00
|
|
|
|
|
|
|
def down
|
|
|
|
raise ActiveRecord::IrreversibleMigration
|
|
|
|
end
|
2019-10-24 20:57:34 -04:00
|
|
|
end
|