diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2015-12-31 19:45:47 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-12-31 19:46:05 -0300 |
commit | e991c7b8cd69d7ba5e221a19e5f386e3ba02eb9d (patch) | |
tree | 0524bb13d7d9fe66d122b094648b16efd04807d3 /activerecord/test | |
parent | 8167fa4562841f4ae7ce307ce0c91a448a695ad9 (diff) | |
download | rails-e991c7b8cd69d7ba5e221a19e5f386e3ba02eb9d.tar.gz rails-e991c7b8cd69d7ba5e221a19e5f386e3ba02eb9d.tar.bz2 rails-e991c7b8cd69d7ba5e221a19e5f386e3ba02eb9d.zip |
value has the right type here
using `enum kind: [ :any, :income, :expense ]` syntax, value is already an
integer and using `enum kind: { any: 'any', income: 'income', expense:
'expense' }` syntax value is a string.
This allows us to define the mapping in the enum definition.
This reverts commit 933decceaf6092020ba7ba768b51b2db9d5b882f.
Diffstat (limited to 'activerecord/test')
0 files changed, 0 insertions, 0 deletions