I\'m still not sure how to do my migrations with knex. Here is what I have so far. It works on up, but down gives me FK constraint error even though fo
up
down
inTable() should be placed after references():
inTable()
references()
inTablecolumn.inTable(table) Sets the table where the foreign key column is located after calling column.references.
inTablecolumn.inTable(table)
Sets the table where the foreign key column is located after calling column.references.
table
column.references
Documentation.