mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
migrations guide: updates link to foreign_key_migrations plugin, thanks to holli
This commit is contained in:
parent
b0df8b615e
commit
5b59bff705
1 changed files with 1 additions and 1 deletions
|
@ -582,7 +582,7 @@ The Active Record way claims that intelligence belongs in your models, not in th
|
|||
|
||||
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.
|
||||
|
||||
Although Active Record does not provide any tools for working directly with such features, the +execute+ method can be used to execute arbitrary SQL. There are also a number of plugins such as "redhillonrails":http://agilewebdevelopment.com/plugins/search?search=redhillonrails which add foreign key support to Active Record (including support for dumping foreign keys in +db/schema.rb+).
|
||||
Although Active Record does not provide any tools for working directly with such features, the +execute+ method can be used to execute arbitrary SQL. There are also a number of plugins such as "foreign_key_migrations":http://github.com/harukizaemon/foreign_key_migrations/tree/master which add foreign key support to Active Record (including support for dumping foreign keys in +db/schema.rb+).
|
||||
|
||||
h3. Changelog
|
||||
|
||||
|
|
Loading…
Reference in a new issue