Christian Strang
01/08/2021, 12:42 PMexecuteRaw
in my seed file?
`Raw query failed. Code: 0A000
. Message: `db error: ERROR: cannot truncate a table referenced in a foreign key constraint``Ryan
01/08/2021, 12:48 PMChristian Strang
01/08/2021, 12:50 PMSET FOREIGN_KEY_CHECKS = 0
is not an option, I tried it with the postgres equivalent but it also failed. For now its just easier to reset the db as a whole in development, but would be nice if someone found a way to truncate tables while ignoring constraints.Ryan
01/08/2021, 1:12 PM