text: exports.up = function(knex, Promise) {
    return knex.schema.createTable('movie', function(table) {
      table.increments()
      table.varchar('title', 140).notNullable()
      table.date('year')
      table.foreign('director_id').refrences('director.id')
    })
  };
  
  exports.down = function(knex, Promise) {
    return knex.schema.dropTableIfExists('movie')
  };
  
  
  
  exports.up = function(knex, Promise) {
    return knex.schema.createTable('director', function(table) {
      table.increments()
      table.varchar('name', 140).notNullable()
      table.varchar('nationality', 140)
    })
  };
  
  exports.down = function(knex, Promise) {
    return knex.schema.dropTableIfExists('director')
  };
  