db/migrate/20170306162323_create_sso_authorizations.rb
class CreateSSOAuthorizations < ActiveRecord::Migration
def change
create_table :sso_authorizations do |t|
t.string :uid
t.references :authentication_provider, index: true, foreign_key: true, type: :bigint
t.references :user, index: true, foreign_key: true, type: :bigint
t.timestamps
end
end
end