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:
parent
914b85f124
commit
718d0ea985
1 changed files with 1 additions and 1 deletions
|
@ -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
|
allows models to automatically destroy child objects when the parent is
|
||||||
destroyed. Like anything which operates at the application level, these cannot
|
destroyed. Like anything which operates at the application level, these cannot
|
||||||
guarantee referential integrity and so some people augment them with foreign key
|
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
|
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
|
features, the +execute+ method can be used to execute arbitrary SQL. You could
|
||||||
|
|
Loading…
Reference in a new issue