mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
10 lines
285 B
Ruby
10 lines
285 B
Ruby
class AddOmniauthFieldsToUser < ActiveRecord::Migration[6.0]
|
|
disable_ddl_transaction!
|
|
|
|
def change
|
|
add_column :users, :provider, :string
|
|
add_column :users, :uid, :string
|
|
add_index :users, [:provider, :uid], algorithm: :concurrently,
|
|
unique: true
|
|
end
|
|
end
|