discourse/db/migrate/20130816024250_create_oauth2_user_infos.rb

15 lines
378 B
Ruby
Raw Normal View History

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 23:48:36 +08:00
t.timestamps null: false
end
add_index :oauth2_user_infos, [:uid, :provider], unique: true
end
end