1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Be explicit of where the constraints are.

This commit is contained in:
Jason Noble 2011-12-03 19:24:43 -07:00
parent 914b85f124
commit 718d0ea985

View file

@ -891,7 +891,7 @@ which models can enforce data integrity. The +:dependent+ option on associations
allows models to automatically destroy child objects when the parent is
destroyed. Like anything which operates at the application level, these cannot
guarantee referential integrity and so some people augment them with foreign key
constraints.
constraints in the database.
Although Active Record does not provide any tools for working directly with such
features, the +execute+ method can be used to execute arbitrary SQL. You could