diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-15 00:29:59 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-15 00:40:43 +0300 |
commit | 50ac00cb73ff189794b5004085b76c81e131df6e (patch) | |
tree | b3f0749ed8a998284bbc4d2b22324d41c703c6ee /activerecord/CHANGELOG.md | |
parent | d54435b6bc3d6a2d679ca3cdd9a2a20ea2887893 (diff) | |
download | rails-50ac00cb73ff189794b5004085b76c81e131df6e.tar.gz rails-50ac00cb73ff189794b5004085b76c81e131df6e.tar.bz2 rails-50ac00cb73ff189794b5004085b76c81e131df6e.zip |
Follow up #33530
- Move changelog entry of #33530 up in order to preserve the chronology
since we always add new entries on the top of a changelog file.
- Clarify the changelog entry
- Clarify the docs of remove_foreign_key
- Ensure reversible of `remove_foreign_key` with `:primary_key` and `:to_table`
options.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 06ce2e6d4f..cfd723cd5f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,11 @@ +* Allow `:to_table` option to `invert_remove_foreign_key`. + + Example: + + remove_foreign_key :accounts, to_table: :owners + + *Nikolay Epifanov*, *Rich Chen* + * Add environment & load_config dependency to `bin/rake db:seed` to enable seed load in environments without Rails and custom DB configuration @@ -73,9 +81,5 @@ *DHH* -* Allow `to_table` in `invert_remove_foreign_key`. - - *Nikolay Epifanov*, *Rich Chen* - Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activerecord/CHANGELOG.md) for previous changes. |