Initial implementation of projects, tasks and their basic actions #1

Open
KaungKaung wants to merge 24 commits from development into main
2 changed files with 5 additions and 1 deletions
Showing only changes of commit fbb09e4015 - Show all commits

View File

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

View File

@@ -2,4 +2,6 @@ class Task < ApplicationRecord
belongs_to :project
enum :status, { to_do: 0, in_progress: 1, done: 2 }
validates :title, presence: true
end