aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/helper.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-09-09 15:17:46 +0200
committerYves Senn <yves.senn@gmail.com>2014-09-09 15:17:46 +0200
commitfde0d0219d844bcf71d8f6d9c9420fb75cf9ece9 (patch)
tree35296d699d7c3ade61581645a1001a6dc3dcffcf /activerecord/test/cases/helper.rb
parentec6eee5db0994f92ac2c3c6d2a922c6edd35b2b1 (diff)
downloadrails-fde0d0219d844bcf71d8f6d9c9420fb75cf9ece9.tar.gz
rails-fde0d0219d844bcf71d8f6d9c9420fb75cf9ece9.tar.bz2
rails-fde0d0219d844bcf71d8f6d9c9420fb75cf9ece9.zip
models backed by views don't assume "id" columns are the primary key.
Closes #10247. The same goes for tables with an "id" column but without primary key constraint. Reading from the view works without configuration. If you have an updateable view you need to use `self.primary_key = ''`.
Diffstat (limited to 'activerecord/test/cases/helper.rb')
0 files changed, 0 insertions, 0 deletions