diff --git a/app/models/call_for_papers.rb b/app/models/call_for_papers.rb index 6dcef8d7..17dd74e8 100644 --- a/app/models/call_for_papers.rb +++ b/app/models/call_for_papers.rb @@ -1,7 +1,8 @@ class CallForPapers < ActiveRecord::Base - attr_accessible :start_date, :end_date, :hard_deadline, :description, :schedule_changes + attr_accessible :start_date, :end_date, :hard_deadline, :description, :schedule_changes, :rating, :rating_desc belongs_to :conference validates_presence_of :start_date, :end_date, :hard_deadline + validates :rating, :numericality => { :greater_than_or_equal_to => 2, :less_than_or_equal_to => 10 } -end \ No newline at end of file +end