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/cases
Ryuta Kamizono 06d04bc237 Invoke load_schema in _default_attributes
Currently `_default_attributes` doesn't work unless `load_schema` is
called before.

The `MissingAttributeError` is caused by `reload_schema_from_cache` is
invoked by `serialize`.

I added `load_schema` in `_default_attributes` to `_default_attributes`
works without any dependency like `attribute_types` etc.

Closes #31905.
2018-02-06 22:32:03 +09:00
..
adapters Dump correctly index nulls order for postgresql 2018-01-28 18:37:52 +02:00
associations Remove extra whitespace 2018-01-25 23:32:59 -05:00
attribute_methods
coders
connection_adapters Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
connection_specification Distinguish missing adapter gems from load errors within the adapter 2017-10-08 14:47:51 -07:00
fixture_set
migration Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
relation Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
scoping Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
tasks Refactor migration to move migrations paths to connection 2018-01-18 08:55:03 -05:00
type Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
validations Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
adapter_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
aggregations_test.rb Handle FrozenError if it is available 2017-12-20 11:52:01 +00:00
ar_schema_test.rb Refactor migration to move migrations paths to connection 2018-01-18 08:55:03 -05:00
associations_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
attribute_decorators_test.rb
attribute_methods_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
attributes_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
autosave_association_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
base_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
batches_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
binary_test.rb
bind_parameter_test.rb
cache_key_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
calculations_test.rb Fix count(:all) with eager loading and having an order other than the driving table 2018-01-25 14:12:58 +09:00
callbacks_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
clone_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
collection_cache_key_test.rb Avoid passing unnecessary arguments to relation 2018-01-24 16:49:35 -05:00
column_alias_test.rb
column_definition_test.rb
comment_test.rb Return nil if table comment is blank 2017-09-22 23:04:54 +09:00
connection_management_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
connection_pool_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
core_test.rb
counter_cache_test.rb
custom_locking_test.rb
database_statements_test.rb
date_test.rb
date_time_precision_test.rb
date_time_test.rb
defaults_test.rb Suppress warning: BigDecimal.new is deprecated in activerecord 2017-12-13 21:29:06 +00:00
dirty_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
disconnected_test.rb
dup_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
enum_test.rb Remove extra whitespace 2018-01-25 23:32:59 -05:00
errors_test.rb
explain_subscriber_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
explain_test.rb
finder_respond_to_test.rb Use respond_to test helpers 2018-01-25 23:32:58 -05:00
finder_test.rb Fix expanding an array of composed_of objects which have multiple mappings 2018-01-29 09:24:14 +09:00
fixtures_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
forbidden_attributes_protection_test.rb
habtm_destroy_order_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
helper.rb
hot_compatibility_test.rb
i18n_test.rb
inheritance_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
instrumentation_test.rb Fix "warning: `*' interpreted as argument prefix" 2017-09-21 13:33:43 +09:00
integration_test.rb
invalid_connection_test.rb
invertible_migration_test.rb Fix CI failure due to invalid up_only for MySQL 2017-11-15 08:16:27 +09:00
json_attribute_test.rb Use :string instead of :text for JsonAttributeTest 2017-12-06 08:42:51 +09:00
json_serialization_test.rb Use respond_to test helpers 2018-01-25 23:32:58 -05:00
json_shared_test_cases.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
locking_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
log_subscriber_test.rb Log call site for all queries 2017-12-13 20:13:21 -05:00
migration_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
migrator_test.rb Restore test_migrations_status_with_schema_define_in_subdirectories 2018-01-19 11:51:07 +09:00
mixin_test.rb
modules_test.rb
multiparameter_attributes_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
multiple_db_test.rb
nested_attributes_test.rb Remove extra whitespace 2018-01-25 23:32:59 -05:00
nested_attributes_with_callbacks_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
null_relation_test.rb
numeric_data_test.rb
persistence_test.rb Invoke load_schema in _default_attributes 2018-02-06 22:32:03 +09:00
pooled_connections_test.rb
primary_keys_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
query_cache_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
quoting_test.rb Suppress warning: BigDecimal.new is deprecated in activerecord 2017-12-13 21:29:06 +00:00
readonly_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
reaper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
reflection_test.rb Merge pull request #31615 from cben/type_for_attribute-symbol 2018-01-29 10:46:35 +09:00
relation_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
relations_test.rb Remove extra whitespace 2018-01-25 23:32:59 -05:00
reload_models_test.rb
reserved_word_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
result_test.rb
sanitize_test.rb Deprecate expand_hash_conditions_for_aggregates 2018-01-29 21:35:30 +09:00
schema_dumper_test.rb Refactor length, order, and opclass index options dumping 2017-12-03 05:01:41 +09:00
schema_loading_test.rb
secure_token_test.rb
serialization_test.rb
serialized_attribute_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
statement_cache_test.rb Enable Layout/LeadingCommentSpace to not allow cosmetic changes in the future 2017-12-14 17:30:54 +09:00
store_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
suppressor_test.rb
test_case.rb Merge pull request #31331 from dinahshi/postgresql_bulk_update 2018-01-03 13:15:07 +10:30
test_fixtures_test.rb
time_precision_test.rb
timestamp_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
touch_later_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
transaction_callbacks_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
transaction_isolation_test.rb Consolidate redundant if and unless with the same condition 2017-11-09 05:08:26 +09:00
transactions_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
type_test.rb
types_test.rb
unconnected_test.rb
unsafe_raw_sql_test.rb Merge pull request #27947 from mastahyeti/unsafe_raw_sql 2017-11-14 23:30:45 +10:30
validations_repair_helper.rb
validations_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
view_test.rb
yaml_serialization_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00