Validate form data
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
class Project < ApplicationRecord
|
||||
has_many :tasks
|
||||
has_many :tasks, dependent: :destroy
|
||||
|
||||
validates :project_name, :description, presence: true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user