Skip to content

Instantly share code, notes, and snippets.

@mhayes
Created June 15, 2010 23:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mhayes/439901 to your computer and use it in GitHub Desktop.
A Mongoid implementation of meeting minutes
class ActionItem
field :due_date, :type => Date
field :completed, :type => Boolean
field :description
has_one_related :person
embedded_in :meeting, :inverse_of => :action_items
class BusinessItem
field :text
embeds_many :comments
embedded_in :meeting, :inverse_of => :business_items
class Comment
field :text
embedded_in :business_item, :inverse_of => :comments
has_one_related :person
class Meeting
embeds_many :people
field :subject
embeds_many :business_items
embeds_many :action_items
class Person
field :name
field :present, :type => Boolean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment