Commit 4076bce5 authored by Timothy Andrew's avatar Timothy Andrew

Merge the "personal access token"-related migrations.

parent c382bd26
......@@ -4,6 +4,8 @@ class CreatePersonalAccessTokens < ActiveRecord::Migration
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
......
class AddColumnRevokedToPersonalAccessTokens < ActiveRecord::Migration
def change
add_column :personal_access_tokens, :revoked, :boolean, default: false
end
end
class AddColumnExpiresAtToPersonalAccessTokens < ActiveRecord::Migration
def change
add_column :personal_access_tokens, :expires_at, :datetime
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment