basic_app/app/models/p_contact.rb
Nicolas Bally fd027c16c1 initial
2020-04-21 21:53:16 +02:00

10 lines
225 B
Ruby

class PContact < ApplicationRecord
belongs_to :contactable, :polymorphic => true
has_many :p_contact_contact_types, :dependent => :destroy
has_many :p_contact_types, :through => :p_contact_contact_types
end