test/schema_change_test.rb
# This helper simulates the models being reloaded
This helper simulates the models being reloaded
This helper simulates the models being reloaded
def read_new_schema
    AssociatedRecord.reset_column_information
    DeeplyAssociatedRecord.reset_column_information
    AssociatedRecord.send(:instance_variable_set, :@rails_cache_key_prefix, nil)
    Item.send(:instance_variable_set, :@rails_cache_key_prefix, nil)
  end
def read_new_schema AssociatedRecord . reset_column_information DeeplyAssociatedRecord . reset_column_information AssociatedRecord . send ( :instance_variable_set , :@rails_cache_key_prefix , nil ) Item . send ( :instance_variable_set , :@rails_cache_key_prefix , nil ) end
This helper simulates the models being reloaded
This helper simulates the models being reloaded