diff options
author | Jason Noble <perlwizard@gmail.com> | 2011-12-03 19:24:43 -0700 |
---|---|---|
committer | Jason Noble <perlwizard@gmail.com> | 2011-12-03 19:31:45 -0700 |
commit | 718d0ea985e0c552fa9d2312c53e308cbfea440b (patch) | |
tree | 10a77802dc9cc7749f23a9415f0121fa37cf3f81 /railties/guides/source | |
parent | 914b85f12492adad35108405d498da314584b9bf (diff) | |
download | rails-718d0ea985e0c552fa9d2312c53e308cbfea440b.tar.gz rails-718d0ea985e0c552fa9d2312c53e308cbfea440b.tar.bz2 rails-718d0ea985e0c552fa9d2312c53e308cbfea440b.zip |
Be explicit of where the constraints are.
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/migrations.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/migrations.textile b/railties/guides/source/migrations.textile index bb5b769f79..2290b26162 100644 --- a/railties/guides/source/migrations.textile +++ b/railties/guides/source/migrations.textile @@ -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 |