You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.
I am getting error when migration entry has "on_delete: :nullify"
"Unexpected error while running migrations: syntax error at or near "NULLIFY"
Seems :nullify is not converted to sql "SET NULL" "
Bug in lucky_migrator.
The text was updated successfully, but these errors were encountered:
oneiros
added a commit
to oneiros/lucky_migrator
that referenced
this issue
Jul 6, 2018
* Use `SET NULL` instead of `NULLIFY`.
According to
https://www.postgresql.org/docs/9.5/static/ddl-constraints.html
this should be the right syntax. See #111
* Remove trailing whitespace.
* Use on delete strategies consistently.
Use the same code to generate correct SQL for create
table and create foreign key statements.
I am getting error when migration entry has "on_delete: :nullify"
"Unexpected error while running migrations: syntax error at or near "NULLIFY"
Seems :nullify is not converted to sql "SET NULL" "
Bug in lucky_migrator.
The text was updated successfully, but these errors were encountered: