mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
e3b4a462f7
In cases where an application uses pt-osc or lhm they may have temporary tables being used for migrations. Those tables shouldn't be included by the schema cache because it makes the cache bigger and those tables shouldn't ever be queried by the application. This feature allows applications to configure a list of or regex of tables to ignore. The behavior for ignored tables for each method in the schema cache (`columns`, `columns_hash`, `primary_keys`, and `indexes`) matches the behavior of a non-existent table. `columns` and `columns_hash` will raise a database not found error, `primary_keys` will return `nil`. and `indexes` will return an empty array. See #43105 which make behavior across adapters consistent. To use in an application configure `config.active_record.schema_cache_ignored_tables` to an array of tables or regex's. Those tables will not be included in the schema cache dump. |
||
---|---|---|
.. | ||
adapter_leasing_test.rb | ||
connection_handler_test.rb | ||
connection_handlers_multi_db_test.rb | ||
connection_handlers_multi_pool_config_test.rb | ||
connection_handlers_sharding_db_test.rb | ||
connection_swapping_nested_test.rb | ||
legacy_connection_handlers_multi_db_test.rb | ||
legacy_connection_handlers_sharding_db_test.rb | ||
merge_and_resolve_default_url_config_test.rb | ||
mysql_type_lookup_test.rb | ||
schema_cache_test.rb | ||
standalone_connection_test.rb | ||
type_lookup_test.rb |