pic_vert_app/app/models/newsgroup.rb
2013-01-08 23:28:47 +01:00

8 lines
217 B
Ruby

# -*- encoding : utf-8 -*-
class Newsgroup < ActiveRecord::Base
has_many :people_newsgroups
has_many :people, :through => :people_newsgroups
validates_presence_of :name
attr_accessible :name, :description
end