I am using knex.js with postgresql So I have a table with a nullable foreign key.
shortened version:
exports.up = function (knex, Promise) { return k