2017-09-10 17:25:29 +05:30
|
|
|
# rubocop:disable Migration/Datetime
|
|
|
|
# rubocop:disable Migration/Timestamps
|
2016-06-22 15:30:34 +05:30
|
|
|
class CreatePersonalAccessTokens < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :personal_access_tokens do |t|
|
|
|
|
t.references :user, index: true, foreign_key: true, null: false
|
|
|
|
t.string :token, index: { unique: true }, null: false
|
|
|
|
t.string :name, null: false
|
|
|
|
t.boolean :revoked, default: false
|
|
|
|
t.datetime :expires_at
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|