diff options
| author | Sean Griffin <sean@thoughtbot.com> | 2014-12-22 13:10:01 -0700 |
|---|---|---|
| committer | Sean Griffin <sean@thoughtbot.com> | 2014-12-22 13:47:11 -0700 |
| commit | 82afeaf23b0cc190d1ed2c8858a11980c71ac336 (patch) | |
| tree | ab7aa8f0cd4f3a168c1cef7fcb8b9b36a89188b9 /activerecord/test/models/reference.rb | |
| parent | 68a6c8ecc41ca2e4bee7c7218e8a4be81bbf7e25 (diff) | |
| download | rails-82afeaf23b0cc190d1ed2c8858a11980c71ac336.tar.gz rails-82afeaf23b0cc190d1ed2c8858a11980c71ac336.tar.bz2 rails-82afeaf23b0cc190d1ed2c8858a11980c71ac336.zip | |
Add `foreign_key` as an option to `references` for `change_table`
This has the same comments as 9af90ffa00ba35bdee888e3e1ab775ba0bdbe72c,
however it affects the `add_reference` method, and `t.references` in the
context of a `change_table` block.
There is a lot of duplication of code between creating and updating
tables. We should re-evaluate the structure of this code from a high
level so changes like this don't need to be made in two places. (Note to
self)
Diffstat (limited to 'activerecord/test/models/reference.rb')
0 files changed, 0 insertions, 0 deletions
