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/schema
yui-knk 817c1825c1 Except keys of build_record's argument from create_scope in initialize_attributes
If argument of `build_record` has key and value which is same as
default value of database, we should also except the key from
`create_scope` in `initialize_attributes`.
Because at first `build_record` initialize record object with argument
of `build_record`, then assign attributes derived from Association's scope.
In this case `record.changed` does not include the key, which value is
same as default value of database, so we should add the key to except list.

Fix #21893.
2015-11-16 23:15:45 +09:00
..
mysql2_specific_schema.rb Merge pull request #21932 from kamipo/add_stored_procedure_test_in_mysql2 2015-10-20 14:02:23 -06:00
mysql_specific_schema.rb Merge pull request #21932 from kamipo/add_stored_procedure_test_in_mysql2 2015-10-20 14:02:23 -06:00
oracle_specific_schema.rb tests, favor public API over inspecting columns where possible. 2014-12-01 16:57:48 +01:00
postgresql_specific_schema.rb Correctly handle array columns with defaults in the schema dumper 2015-06-11 16:50:25 -06:00
schema.rb Except keys of build_record's argument from create_scope in initialize_attributes 2015-11-16 23:15:45 +09:00
sqlite_specific_schema.rb fk: use random digest names 2014-06-26 22:03:49 +02:00