instance method
reload_schema_from_cache
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
reload_schema_from_cache(recursive = true)
No documentation comment.
Parameters
-
recursiveopt = true
Source
# File activerecord/lib/active_record/model_schema.rb, line 569
def reload_schema_from_cache(recursive = true)
@_returning_columns_for_insert = nil
@arel_table = nil
@column_names = nil
@symbol_column_to_string_name_hash = nil
@content_columns = nil
@column_defaults = nil
@attributes_builder = nil
@columns = nil
@columns_hash = nil
@schema_loaded = false
@attribute_names = nil
@yaml_encoder = nil
if recursive
subclasses.each do |descendant|
descendant.send(:reload_schema_from_cache)
end
end
end
Defined in activerecord/lib/active_record/model_schema.rb line 569
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ModelSchema::ClassMethods