Skip to content

Commit

Permalink
Fix failing specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowens committed Nov 18, 2023
1 parent e9cac1a commit 7ba4152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/models/book.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class Book < ActiveRecord::Base
belongs_to :topic, inverse_of: :books
belongs_to :tag, foreign_key: [:tag_id, :parent_id]
belongs_to :tag, foreign_key: [:tag_id, :parent_id] unless ENV["SKIP_COMPOSITE_PK"]

has_many :chapters, inverse_of: :book
has_many :discounts, as: :discountable
Expand Down
2 changes: 1 addition & 1 deletion test/models/customer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ class Customer < ActiveRecord::Base
has_many :orders,
inverse_of: :customer,
primary_key: %i(account_id id),
foreign_key: %i(account_id customer_id)
foreign_key: %i(account_id customer_id) unless ENV["SKIP_COMPOSITE_PK"]
end

0 comments on commit 7ba4152

Please sign in to comment.