Merge pull request #51879 from eileencodes/add-test-and-fix-changelog-for-51878

Add test and fix changelog for `schema_cache_ignored_table?`
This commit is contained in:
Eileen M. Uchitelle 2024-05-21 16:32:27 -04:00 committed by GitHub
commit 0596f4de18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@
```ruby
ActiveRecord.schema_cache_ignored_tables = ["developers"]
ActiveRecord.schema_cache_ignored_tables?("developers")
ActiveRecord.schema_cache_ignored_table?("developers")
=> true
```

View File

@ -231,7 +231,9 @@ module ActiveRecord
def test_marshal_dump_and_load_with_ignored_tables
old_ignore = ActiveRecord.schema_cache_ignored_tables
assert_not ActiveRecord.schema_cache_ignored_table?("professors")
ActiveRecord.schema_cache_ignored_tables = ["professors"]
assert ActiveRecord.schema_cache_ignored_table?("professors")
# Create an empty cache.
cache = new_bound_reflection