diff options
author | Xavier Noria <fxn@hashref.com> | 2008-11-09 10:05:42 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2008-11-09 10:05:42 +0100 |
commit | 759ace7e87eb7b3cf6614b85db96913813d71a39 (patch) | |
tree | 74813a49239672fd20a060dffbb937d0d042fe98 /railties/doc/guides/source/migrations | |
parent | 2146b34ee7c4131afd4762442812caebb0ea71d7 (diff) | |
download | rails-759ace7e87eb7b3cf6614b85db96913813d71a39.tar.gz rails-759ace7e87eb7b3cf6614b85db96913813d71a39.tar.bz2 rails-759ace7e87eb7b3cf6614b85db96913813d71a39.zip |
added a comma suggested by Brandon Zylstra in LH
Diffstat (limited to 'railties/doc/guides/source/migrations')
-rw-r--r-- | railties/doc/guides/source/migrations/foreign_keys.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/migrations/foreign_keys.txt b/railties/doc/guides/source/migrations/foreign_keys.txt index 8f796843b2..792c41ccdc 100644 --- a/railties/doc/guides/source/migrations/foreign_keys.txt +++ b/railties/doc/guides/source/migrations/foreign_keys.txt @@ -1,6 +1,6 @@ [[foreign_key]] == Active Record and Referential Integrity == -The Active Record way is that intelligence belongs in your models, not in the database. As such features such as triggers or foreign key constraints, which push some of that intelligence back into the database are not heavily used. +The Active Record way is that intelligence belongs in your models, not in the database. As such, features such as triggers or foreign key constraints, which push some of that intelligence back into the database are not heavily used. Validations such as `validates_uniqueness_of` are one way in 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. |