class CreateOauthAuthentications

OAuth Authentication 모델생성 migration 파일

Columns

Public Instance Methods

change() click to toggle source
# File lib/generators/remotty/rails/templates/create_oauth_authentications.rb, line 16
def change
  create_table :oauth_authentications do |t|
    t.references :user,     index: true
    t.string     :provider, index: true
    t.string     :uid,      index: true
    t.string     :access_token
    t.string     :access_token_secret
    t.datetime   :expires_at

    t.timestamps
  end
end