Skip to content

Commit

Permalink
Stop memoizing schema column hash
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowens committed Aug 31, 2023
1 parent 0fc4ef1 commit 6dbdc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/activerecord-import/import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ def import_associations(models, options)
end

def schema_columns_hash
@schema_columns_hash ||= if respond_to?(:ignored_columns) && ignored_columns.any?
if respond_to?(:ignored_columns) && ignored_columns.any?
connection.schema_cache.columns_hash(table_name)
else
columns_hash
Expand Down

0 comments on commit 6dbdc1c

Please sign in to comment.