There are 3 main relational databases that Rails devs care about: SQLite, MySQL 
and Postgres.

SQLite hasn't had foreign key constraints until late 2009 and MySQL only has it 
on InnoDB tables (not default). So, for the most of Rails' lifetime, FKC 
support in supported databases wasn't ubiquitous. When you think about it, it 
makes sense that AR chose to implement these checks in the application (via 
validations) rather than relying on RDBMS.

The only big feature of relational systems that I can recall AR connected to is 
stored procedures, and that is Postgres-only if I remember. It had benefits in 
form of significant speedups. What significant gain would there be from relying 
on FKC?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to