From b8e1f202676b4788c56241b124c401beff9f4014 Mon Sep 17 00:00:00 2001 From: Chris Sinjakli Date: Mon, 2 Feb 2015 23:41:12 +0000 Subject: Generate consistent names for foreign keys --- activerecord/CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 3a0c32e66d..af692adad6 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,12 @@ +* Foreign keys added by migrations were given random, generated names. This + meant a different `structure.sql` would be generated every time a developer + ran migrations on their machine. + + The generated part of foreign key names is now a hash of the table name and + column name, which is consistent every time you run the migration. + + *Chris Sinjakli* + * Validation errors would be raised for parent records when an association was saved when the parent had `validate: false`. It should not be the responsibility of the model to validate an associated object unless the -- cgit v1.2.3