aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-10-13 11:05:19 +0200
committerYves Senn <yves.senn@gmail.com>2015-10-13 11:05:19 +0200
commit5a14349baff600af3df5fcd24d423299488fd9e6 (patch)
treee2b3c60f9df8c8bf5fe49ba776bbc4c4725b4339 /activerecord/lib/active_record.rb
parent256097cb570fa31ca7b8140009ebd632a430b8cb (diff)
downloadrails-5a14349baff600af3df5fcd24d423299488fd9e6.tar.gz
rails-5a14349baff600af3df5fcd24d423299488fd9e6.tar.bz2
rails-5a14349baff600af3df5fcd24d423299488fd9e6.zip
`:to_table` when adding a fk through `add_reference`.
Closes #21563. The `name` argument of `add_references` was both used to generate the column name `<name>_id` and as the target table for the foreign key `name.pluralize`. It's primary purpose is to define the column name. In cases where the `to_table` of the foreign key is different than the column name we should be able to specify it individually.
Diffstat (limited to 'activerecord/lib/active_record.rb')
0 files changed, 0 insertions, 0 deletions