Closed pyromaniac closed 1 year ago
Hi @pyromaniac,
Yes, it seems you're correct. Thank you for sharing this! Would you like to make a PR for that?
I'm sorry it took me long to look at the issue.
Yes, will do soon
Thank you! I would be happy to merge and release immediately.
Hey @djezzzl I believe that the mapping here https://github.com/djezzzl/database_consistency/blob/a2be80b47fc9cc165c302cf2da60a03a5dfd473d/lib/database_consistency/checkers/association_checkers/foreign_key_cascade_checker.rb#L20-L21 is not entirely correct. Accordingly to https://stackoverflow.com/questions/60043008/when-to-use-nothing-or-restrict-for-on-delete-with-ecto the default NO ACTION value also raises an error, it is just deferred. But for this purpose it would be perfect to have something like:
WDYT?