aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/interest.rb
blob: 899b8f9b9d342a94961fa4aba31bb07afcf54baf (plain) (blame)
1
2
3
4
5
6
7
# frozen_string_literal: true

class Interest < ActiveRecord::Base
  belongs_to :man, inverse_of: :interests
  belongs_to :polymorphic_man, polymorphic: true, inverse_of: :polymorphic_interests
  belongs_to :zine, inverse_of: :interests
end