Skip to content

Commit

Permalink
Merge pull request #812 from zdennis/fix-809
Browse files Browse the repository at this point in the history
Stop memoizing schema column hash
  • Loading branch information
jkowens committed Aug 31, 2023
2 parents 0fc4ef1 + 6dbdc1c commit 3c8ecde
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 3c8ecde

Please sign in to comment.