mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 20:54:03 +00:00
parent
87b1aba1e9
commit
799fd0c3a4
19 changed files with 65 additions and 66 deletions
|
|
@ -2,7 +2,7 @@ class DifficultyLevel < ActiveRecord::Base
|
|||
attr_accessible :title, :description, :color, :conference_id
|
||||
|
||||
belongs_to :conference
|
||||
has_many :events
|
||||
has_many :events, dependent: :nullify
|
||||
|
||||
validates :title, presence: true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue