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