mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add difficulty levels
This commit is contained in:
parent
4356616566
commit
5b35e25ecd
15 changed files with 119 additions and 3 deletions
8
app/models/difficulty_level.rb
Normal file
8
app/models/difficulty_level.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue