rails/activerecord/test
ak 93b8c24f18 Use non-exist enum string to get unrelated record in My SQL
This behaviour is in
rails/activerecord/lib/active_record/enum.rb #serialize(value) line no 143
if value is not present in mapping we are sending the value back ,
which in mysql returns unrelated record.

I have changed to return nil is value is not present in mapping

Implemented code review changes

Improved test case coverage

[ci skip] - cosmetic changes for better readibility of change log

Signed-off-by: ak <atulkanswal@gmail.com>
2020-03-18 16:37:45 +05:30
..
active_record/connection_adapters Deduplicate various Active Record schema cache structures 2019-06-03 13:31:42 +02:00
assets
cases Use non-exist enum string to get unrelated record in My SQL 2020-03-18 16:37:45 +05:30
fixtures Allow AR::Enum definitions with boolean values 2019-12-24 07:05:42 -10:00
migrations Fix occurrences Fixnum|Bignum 2018-03-04 20:44:30 +02:00
models Support strict_loading on association declarations 2020-02-21 13:11:24 -05:00
schema Merge pull request #37627 2020-02-10 01:00:30 +01:00
support Merge pull request #38401 from vinistock/stop_stringifying_during_attribute_assignment 2020-02-13 16:54:35 -05:00
config.example.yml Respect ENV variables when finding DBs etc for the test suite 2019-02-06 01:20:06 +10:30
config.rb