rails/activerecord/test
Sean Griffin 67c1719012 Use the database type to deserialize enum
This fixes incorrect assumptions made by e991c7b 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
2016-01-23 08:44:16 -07:00
..
active_record/connection_adapters introduce conn.data_source_exists? and conn.data_sources. 2015-09-22 19:48:44 +02:00
assets
cases Use the database type to deserialize enum 2016-01-23 08:44:16 -07:00
fixtures fix regression when loading fixture files with symbol keys. 2016-01-13 10:11:54 +01:00
migrations Internal test migrations use the private 'Current' version 2015-12-15 17:18:09 +10:30
models Use the database type to deserialize enum 2016-01-23 08:44:16 -07:00
schema Use the database type to deserialize enum 2016-01-23 08:44:16 -07:00
support Deprecate #table_exists?, #tables and passing arguments to #talbes 2015-11-09 23:13:23 +09:00
.gitignore
config.example.yml Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
config.rb