-
theworldbright a rédigétheworldbright a rédigé
20150614134031_create_tokens.rb 289 o
class CreateTokens < ActiveRecord::Migration
def self.up
create_table :tokens do |t|
t.belongs_to :o_auth_application, index: true
t.string :token
t.datetime :expires_at
t.timestamps null: false
end
end
def self.down
drop_table :tokens
end
end