BattleSim/migrations/20140430061741_create_teams...

13 lines
325 B
CoffeeScript
Raw Normal View History

2016-02-01 22:19:30 +00:00
exports.up = (knex, Promise) ->
knex.schema.createTable 'teams', (t) ->
t.increments()
t.integer('trainer_id').index().notNull()
t.string('name').notNull()
t.string('generation').notNull()
t.json('contents')
t.timestamps()
exports.down = (knex, Promise) ->
knex.schema.dropTableIfExists 'teams'