Add difficulty levels

This commit is contained in:
Stella 2014-02-23 16:09:09 +02:00
parent 4356616566
commit 5b35e25ecd
15 changed files with 119 additions and 3 deletions

View file

@ -0,0 +1,8 @@
class DifficultyLevel < ActiveRecord::Base
attr_accessible :title, :description, :color
belongs_to :conference
has_many :events
validates :title, :presence => true
end