Skip to content

Commit

Permalink
Remove association overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
evman182 committed Feb 13, 2024
1 parent edcb8d7 commit ba12d0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/temporal_tables/temporal_class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def self.temporalize_associations! # rubocop:disable Metrics/MethodLength, Metri
association.macro, association.name,
**association.options.merge(
class_name: clazz.name,
foreign_key: association.foreign_key,
primary_key: clazz.orig_class.primary_key
foreign_key: association.foreign_key
)
)
end
Expand Down

0 comments on commit ba12d0f

Please sign in to comment.