This project is archived and is in readonly mode.
Add foreign key support to migrations and schema.rb dump
-
matthuhiggins
Oops, this patch left out tests for the schema dumper.
-
matthuhiggins
foreign_keys-2.diff tests that foreign keys are dumped to schema.rb after the tables
-
2kan
- I haven't read the patch, but it is very good idea.
-
wtn
-1
I'm fine with using existing gems and leaving this out of the official AR.
-
Daniel
+1 Migrations have always felt incomplete to me because they lack support for adding foreign key constraints. I greatly appreciate the Foreigner gem, but I would really like to see foreign keys supported in the framework.
-
Michał Łomnicki
+1 for foreign keys
It is absolute must-have for ActiveRecord. Foreign keys are the only way to keep relations consistent as validations are prone to race conditions and one can't really rely on them.
-
Ryan
+1 This is absolutely necessary. Foreign keys should definitely be supported out of the box for migrations.
-
Franco Catena
+1 for me too. I agree, is the one thing that was always missed in migrations.
