diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-02-02 18:43:05 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-02-02 18:43:05 -0700 |
commit | 186418724c6da41caeb0fd304894bcfcc154b8bb (patch) | |
tree | a45917320277d98063e7ce1486e6822ff6301e00 /activerecord/CHANGELOG.md | |
parent | 8a42525dea42169740f0f288f5baf7c2903628a2 (diff) | |
parent | b8e1f202676b4788c56241b124c401beff9f4014 (diff) | |
download | rails-186418724c6da41caeb0fd304894bcfcc154b8bb.tar.gz rails-186418724c6da41caeb0fd304894bcfcc154b8bb.tar.bz2 rails-186418724c6da41caeb0fd304894bcfcc154b8bb.zip |
Merge pull request #18791 from Sinjo/consistent-foreign-key-name-generation
Consistent foreign key name generation
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 |