Created
September 14, 2008 04:08
-
-
Save parabuzzle/10698 to your computer and use it in GitHub Desktop.
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 Event < ActiveRecord::Base | |
| belongs_to :user | |
| belongs_to :group | |
| end |
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 Group < ActiveRecord::Base | |
| belongs_to :user | |
| has_many :watchers | |
| has_many :members | |
| has_many :events | |
| end |
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 User < ActiveRecord::Base | |
| has_many :groups | |
| has_many :watchers | |
| has_many :members | |
| has_many :events | |
| end |
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 Member < ActiveRecord::Base | |
| belongs_to :group | |
| belongs_to :users | |
| end |
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 Watcher < ActiveRecord::Base | |
| belongs_to :group | |
| belongs_to :users | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment