diaspora/db/migrate/20150614134031_create_o_auth_access_tokens.rb
theworldbright 1475672d72 Fix authorization and related models
Squashed commits:
[a844d37] Remove unnecessary class_name's from models
[529a30c] Further adjust authorization and related models
2016-01-04 16:49:50 +09:00

11 lines
264 B
Ruby

class CreateOAuthAccessTokens < ActiveRecord::Migration
def self.up
create_table :o_auth_access_tokens do |t|
t.belongs_to :authorization, index: true
t.string :token
t.datetime :expires_at
t.timestamps null: false
end
end
end