Fixes for voting on proposals. 0 for no voting option. Set default value in migration to avoid blank/null problems.
This commit is contained in:
parent
125d5fe3ff
commit
de1ed9be2b
3 changed files with 10 additions and 2 deletions
|
|
@ -3,6 +3,6 @@ class CallForPapers < ActiveRecord::Base
|
|||
belongs_to :conference
|
||||
|
||||
validates_presence_of :start_date, :end_date, :hard_deadline
|
||||
validates :rating, :numericality => { :greater_than_or_equal_to => 1, :less_than_or_equal_to => 10 }
|
||||
validates :rating, :numericality => { :greater_than_or_equal_to => 0, :less_than_or_equal_to => 10 }
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue