Merge pull request #6 from alanaasmaa/patch-1

FIX: Added type table
This commit is contained in:
Romain Lanz
2017-10-30 17:52:21 +01:00
committed by GitHub

View File

@@ -8,6 +8,7 @@ class TokensSchema extends Schema {
table.increments()
table.integer('user_id').unsigned().references('id').inTable('users')
table.string('token', 40).notNullable().unique()
table.string('type', 80).notNullable()
table.boolean('is_revoked').defaultTo(false)
table.timestamps()
})