Validate form data

This commit is contained in:
KaungKaung
2026-01-27 16:55:07 +06:30
parent cfca2bec27
commit fbb09e4015
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
class Project < ApplicationRecord
has_many :tasks
has_many :tasks, dependent: :destroy
validates :project_name, :description, presence: true
end