Open-Source-Access-Control-.../app/models/certification.rb

8 lines
212 B
Ruby
Raw Normal View History

class Certification < ActiveRecord::Base
2014-02-23 12:55:00 +00:00
attr_accessible :description, :name, :slug
has_many :user_certifications
has_many :users, :through => :user_certifications
2014-02-23 12:55:00 +00:00
validates_presence_of :name, :slug
end