Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User < ActiveRecord::Base
- has_one :preferences
- has_many :projects
- has_many :branches
- has_many :documents
- has_many :annotations
- has_many :comments
- has_many :micro_messages
- has_many :micro_message_project_subscriptions
- has_many :subscribed_projects, :through => :micro_message_project_subscriptions, :source => :project
- end
- class Project < ActiveRecord::Base
- belongs_to :user
- has_many :branches
- has_many :micro_messages
- has_many :micro_message_project_subscriptions
- has_many :subscribed_users, :through => :micro_message_project_subscriptions, :source => :user
- end
- class MicroMessageProjectSubscriptions < ActiveRecord::Base
- belongs_to :user
- belongs_to :project
- end
Add Comment
Please, Sign In to add comment