mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 17:05:47 +08:00
14 lines
354 B
Ruby
14 lines
354 B
Ruby
# 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
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|