trabajo-afectivo/app/models/group.rb

7 lines
266 B
Ruby
Raw Normal View History

class Group < ApplicationModel
2012-07-29 18:55:51 +00:00
has_and_belongs_to_many :users, :after_add => :cache_update, :after_remove => :cache_update
belongs_to :email_address
belongs_to :signature
validates :name, :presence => true
2012-04-10 14:06:46 +00:00
end