diff --git a/database/migrations/1503248427886_token.js b/database/migrations/1503248427886_token.js index ae9c948..fc65e46 100644 --- a/database/migrations/1503248427886_token.js +++ b/database/migrations/1503248427886_token.js @@ -7,7 +7,7 @@ class TokensSchema extends Schema { this.create('tokens', table => { table.increments() table.integer('user_id').unsigned().references('id').inTable('users') - table.string('token', 40).notNullable().unique() + table.string('token', 255).notNullable().unique().index() table.string('type', 80).notNullable() table.boolean('is_revoked').defaultTo(false) table.timestamps()