app/models/popolo/organization.rb in popolo-0.0.3 vs app/models/popolo/organization.rb in popolo-0.1.0

- old
+ new

@@ -8,19 +8,19 @@ store_in Popolo.storage_options_per_class.fetch(:Organization, Popolo.storage_options) # The geographic area to which the organization is related. belongs_to :area, index: true, class_name: 'Popolo::Area' - # The relationships to which the organization is a party. + # The memberships of the members of the organization. has_many :memberships, class_name: 'Popolo::Membership', dependent: :destroy, inverse_of: :organization - # The organization in which the motion is proposed. + # Motions within the organization. has_many :motions, class_name: 'Popolo::Motion', dependent: :destroy # Posts within the organization. has_many :posts, class_name: 'Popolo::Post', dependent: :destroy - # The organization whose members are voting. + # Vote events in which members of the organization are voting. has_many :vote_events, class_name: 'Popolo::VoteEvent', dependent: :destroy - # The organization that is voting. + # Votes cast by the organization. has_many :votes, as: :voter, class_name: 'Popolo::Vote' # Alternate or former names. embeds_many :other_names, as: :nameable, class_name: 'Popolo::OtherName' # Issued identifiers. embeds_many :identifiers, as: :identifiable, class_name: 'Popolo::Identifier' @@ -33,9 +33,13 @@ # A primary name, e.g. a legally recognized name. field :name, type: String # An organization category, e.g. committee. field :classification, type: String + # A one-line description of an organization. + field :abstract, type: String + # An extended description of an organization. + field :description, type: String # A date of founding. field :founding_date, type: DateString # A date of dissolution. field :dissolution_date, type: DateString # A URL of an image.