diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-06-28 21:59:28 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-06-28 21:59:28 +0900 |
commit | bf3f2010003326a42d86a88425e3c66242c2f2f1 (patch) | |
tree | 6f01a6629628e16d195c6516b3df2be7e2e5ccb2 /guides/source/_welcome.html.erb | |
parent | d766b64b7e137955b7c7dbab51d2b6e525de47c1 (diff) | |
download | rails-bf3f2010003326a42d86a88425e3c66242c2f2f1.tar.gz rails-bf3f2010003326a42d86a88425e3c66242c2f2f1.tar.bz2 rails-bf3f2010003326a42d86a88425e3c66242c2f2f1.zip |
Fix `ids_reader` to respect case sensitive primary key
```ruby
car = Car.create!(name: "Tofaş")
# Before
car.bulb_ids # => SELECT "bulbs".ID FROM "bulbs" WHERE "bulbs"."name" = $1 AND "bulbs"."car_id" = $2 [["name", "defaulty"], ["car_id", 3]]
# After
car.bulb_ids # => SELECT "bulbs"."ID" FROM "bulbs" WHERE "bulbs"."name" = $1 AND "bulbs"."car_id" = $2 [["name", "defaulty"], ["car_id", 3]]
```
Diffstat (limited to 'guides/source/_welcome.html.erb')
0 files changed, 0 insertions, 0 deletions