discourse/db/migrate/20191022155215_add_index_to_oauth2_user_info.rb
Sam Saffron 5ae35f9906 FIX: allow storage of non unique rows in oauth2_user_infos
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.
2019-10-25 11:57:34 +11:00

8 lines
172 B
Ruby

# frozen_string_literal: true
class AddIndexToOauth2UserInfo < ActiveRecord::Migration[6.0]
def change
add_index :oauth2_user_infos, [:user_id, :provider]
end
end