lib/pupa/models/membership.rb in pupa-0.0.8 vs lib/pupa/models/membership.rb in pupa-0.0.9

- old
+ new

@@ -1,15 +1,19 @@ module Pupa # A relationship between a person and an organization. - class Membership < Base + class Membership + include Model + self.schema = 'popolo/membership' include Concerns::Timestamps include Concerns::Sourceable include Concerns::Contactable include Concerns::Linkable attr_accessor :label, :role, :person_id, :organization_id, :post_id, + :start_date, :end_date + dump :label, :role, :person_id, :organization_id, :post_id, :start_date, :end_date foreign_key :person_id, :organization_id, :post_id # Returns the IDs of the parties to the relationship.