mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 23:52:02 +08:00
5ae35f9906
Certain DBs have duplicates already, if we want to ensure uniqueness here we need to decide first how to clean up existing data and confirm all the plugins expect this.
10 lines
291 B
Ruby
10 lines
291 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, [:user_id, :provider]
|
|
end
|
|
end
|