2013-08-18 00:43:59 -04:00
|
|
|
class CreateOauth2UserInfos < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :oauth2_user_infos do |t|
|
|
|
|
t.integer :user_id, null: false
|
|
|
|
t.string :uid, null: false
|
|
|
|
t.string :provider, null: false
|
|
|
|
t.string :email
|
|
|
|
t.string :name
|
2017-08-07 11:48:36 -04:00
|
|
|
t.timestamps null: false
|
2013-08-18 00:43:59 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
add_index :oauth2_user_infos, [:uid, :provider], unique: true
|
|
|
|
end
|
|
|
|
end
|