style(migration): use parentheses in arrow function
* Update 1503248427885_user.js * Update 1503248427886_token.js
This commit is contained in:
parent
ba18e2d712
commit
550bcd891d
|
@ -4,7 +4,7 @@ const Schema = use('Schema')
|
||||||
|
|
||||||
class UserSchema extends Schema {
|
class UserSchema extends Schema {
|
||||||
up () {
|
up () {
|
||||||
this.create('users', table => {
|
this.create('users', (table) => {
|
||||||
table.increments()
|
table.increments()
|
||||||
table.string('username', 80).notNullable().unique()
|
table.string('username', 80).notNullable().unique()
|
||||||
table.string('email', 254).notNullable().unique()
|
table.string('email', 254).notNullable().unique()
|
||||||
|
|
|
@ -4,7 +4,7 @@ const Schema = use('Schema')
|
||||||
|
|
||||||
class TokensSchema extends Schema {
|
class TokensSchema extends Schema {
|
||||||
up () {
|
up () {
|
||||||
this.create('tokens', table => {
|
this.create('tokens', (table) => {
|
||||||
table.increments()
|
table.increments()
|
||||||
table.integer('user_id').unsigned().references('id').inTable('users')
|
table.integer('user_id').unsigned().references('id').inTable('users')
|
||||||
table.string('token', 255).notNullable().unique().index()
|
table.string('token', 255).notNullable().unique().index()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user