mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Be explicit of where the constraints are.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user