Skip to content
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

OnDelete CASCADEについて #13

Open
mahiro72 opened this issue Jan 21, 2022 · 0 comments
Open

OnDelete CASCADEについて #13

mahiro72 opened this issue Jan 21, 2022 · 0 comments

Comments

@mahiro72
Copy link
Collaborator

現状

あるデータに関連するほかのデータを同時に削除できない

試したこと

  • gorm:"constraint:OnUpdate:CASCADE の追加
  • 関連を指定して削除する(アソシエーション)
    参考サイト
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

No branches or pull requests

1 participant