From e9b94a81ca588c8445f922e85a2982b970cace93 Mon Sep 17 00:00:00 2001 From: James Beavers Date: Sun, 21 Sep 2014 03:02:57 -0400 Subject: [PATCH] Add validations for job fields --- app/models/job.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/job.rb b/app/models/job.rb index 0ecd8e7..819bf39 100644 --- a/app/models/job.rb +++ b/app/models/job.rb @@ -1,4 +1,6 @@ class Job < ActiveRecord::Base has_and_belongs_to_many :tags has_one :category + + validates :owner_id, :title, :description, :category, :deadline, presence: true end \ No newline at end of file