mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 03:53:52 +08:00
15 lines
366 B
Ruby
15 lines
366 B
Ruby
|
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
|
||
|
t.timestamps
|
||
|
end
|
||
|
|
||
|
add_index :oauth2_user_infos, [:uid, :provider], unique: true
|
||
|
end
|
||
|
end
|