mirror of https://github.com/rails/rails
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:
commit
0596f4de18
|
@ -4,7 +4,7 @@
|
|||
|
||||
```ruby
|
||||
ActiveRecord.schema_cache_ignored_tables = ["developers"]
|
||||
ActiveRecord.schema_cache_ignored_tables?("developers")
|
||||
ActiveRecord.schema_cache_ignored_table?("developers")
|
||||
=> true
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue