mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Program<->cfp is already a one to one relation
This commit is contained in:
parent
1c7becb69a
commit
4d38305110
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
class Cfp < ActiveRecord::Base
|
||||
belongs_to :program
|
||||
|
||||
validates :program_id, presence: true, uniqueness: true
|
||||
validates :program_id, presence: true
|
||||
validates :start_date, :end_date, presence: true
|
||||
validate :before_end_of_conference
|
||||
validate :start_after_end_date
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue