exports.up = function (knex, Promise) {
  return knex.schema.table('taskPlans', function (table) {
    table.dropColumn('assignee')
    table.integer('assigneeId').references('agents.id')
  })
}

exports.down = function (knex, Promise) {
  return knex.schema.table('taskPlans', function (table) {
    table.string('assignee').notNullable()
    table.dropColumn('assigneeId')
  })
}

@@ -282,32 +282,116 @@
 ction (table) %7B%0A
+    // TODO: this can't be made notNullable again unless we provide a default value%0A
     table.string
@@ -406,22 +406,8 @@
 ee')
-.notNullable()
 %0A   

fix down migration for fix-task-assignees