1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/fixtures/books.yml
Ryuta Kamizono 71f0df943d Fix pluck to correctly type cast same column names and association columns
That issues are caused by using only the model's cast types on the
relation.
To fix that issues, use the attribute's type caster takes precedence
over the model's cast types on the relation.

Fixes #35232.
Fixes #36042.
Fixes #37484.
2020-05-13 20:24:42 +09:00

34 lines
581 B
YAML

awdr:
author_id: 1
id: 1
name: "Agile Web Development with Rails"
format: "paperback"
status: :published
last_read: :read
language: :english
author_visibility: :visible
illustrator_visibility: :visible
font_size: :medium
difficulty: :medium
boolean_status: :enabled
rfr:
author_id: 1
id: 2
name: "Ruby for Rails"
format: "ebook"
status: "proposed"
last_read: "reading"
ddd:
author_id: 1
id: 3
name: "Domain-Driven Design"
format: "hardcover"
status: 2
last_read: "forgotten"
tlg:
author_id: 1
id: 4
name: "Thoughtleadering"