Added enum to Task model. Added project to project to tasks. Changed Status data type in Tasks.

This commit is contained in:
KaungKaung
2026-01-26 21:50:14 +06:30
parent 6bbbc67a3c
commit f72af5d45f
6 changed files with 25 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
class Task < ApplicationRecord
balongs_to :project
belongs_to :project
enum :status, { to_do: 0, in_progress: 1, done: 2 }
end