2018-03-28 15:28:21 -06:00
|
|
|
class CreateTokenIssuances < ActiveRecord::Migration[5.1]
|
2018-07-26 14:55:20 -06:00
|
|
|
safety_assured
|
2018-03-28 15:28:21 -06:00
|
|
|
def change
|
|
|
|
create_table :token_issuances do |t|
|
|
|
|
t.references :device, foreign_key: true, null: false
|
|
|
|
t.integer :exp, null: false
|
|
|
|
t.string :jti, null: false, limit: 45
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|