Created
June 15, 2010 23:28
-
-
Save mhayes/439901 to your computer and use it in GitHub Desktop.
A Mongoid implementation of meeting minutes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActionItem | |
field :due_date, :type => Date | |
field :completed, :type => Boolean | |
field :description | |
has_one_related :person | |
embedded_in :meeting, :inverse_of => :action_items |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BusinessItem | |
field :text | |
embeds_many :comments | |
embedded_in :meeting, :inverse_of => :business_items |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Comment | |
field :text | |
embedded_in :business_item, :inverse_of => :comments | |
has_one_related :person |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Meeting | |
embeds_many :people | |
field :subject | |
embeds_many :business_items | |
embeds_many :action_items |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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