• S
    Use the database type to deserialize enum · 67c17190
    Sean Griffin 提交于
    This fixes incorrect assumptions made by e991c7b8 that we can assume the
    DB is already casting the value for us. The enum type needs additional
    information to perform casting, and needs a subtype.
    
    I've opted not to call `super` in `cast`, as we have a known set of
    types which we accept there, and the subtype likely doesn't accept them
    (symbol -> integer doesn't make sense)
    
    Close #23190
    67c17190
schema.rb 26.5 KB