Skip to content

Annotate on_delete/on_update foreign key constraints #358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 22, 2016

Conversation

sashabelozerov
Copy link
Contributor

I find it very useful to have on_delete and on_update FK constraint values in annotations.

e.g.

fk_rails_02e851e3b7 (foreign_thing_id => foreign_things.id) ON DELETE => nullify ON UPDATE => cascade

in case of -f makrdown option:

fk_rails_02e851e3b7 (ON DELETE => nullify ON UPDATE => cascade)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 72.939% when pulling 7cf6457 on sashabelozerov:on_delete_on_update into 91da93d on ctran:develop.

@ctran ctran merged commit 47e1b1e into ctran:develop Mar 22, 2016
@ctran
Copy link
Owner

ctran commented Mar 22, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants