3 ms·
Rails fully supports constraints and encourages you to use them. You can either execute SQL in your migration or use add_check_constraint.
by Lio 1y ago
Rails fully supports constraints and encourages you to use them.
You can either execute SQL in your migration or use add_check_constraint.
- panzi 1y agoBack when I used Rails the sentiment was: You don't need foreign keys, this is all handled by ActiveRecord.