diff options
author | Chris Sinjakli <chris@sinjakli.co.uk> | 2015-02-02 23:41:12 +0000 |
---|---|---|
committer | Chris Sinjakli <chris@sinjakli.co.uk> | 2015-02-03 01:37:29 +0000 |
commit | b8e1f202676b4788c56241b124c401beff9f4014 (patch) | |
tree | 84b4ac9dfb0faa885d076270969c8f9f5ec3281d /activerecord/CHANGELOG.md | |
parent | 35d77130a2c08f477ce5e7f2e5b28934ad393641 (diff) | |
download | rails-b8e1f202676b4788c56241b124c401beff9f4014.tar.gz rails-b8e1f202676b4788c56241b124c401beff9f4014.tar.bz2 rails-b8e1f202676b4788c56241b124c401beff9f4014.zip |
Generate consistent names for foreign keys
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 9 |
1 files changed, 9 insertions, 0 deletions
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 |