Task creation (workflow dependent frames)

This commit is contained in:
2026-03-21 15:20:04 +02:00
parent fb9d884313
commit 218e8a750e
5 changed files with 31 additions and 17 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ class Workflow < ApplicationRecord
belongs_to :project
has_many :tasks, dependent: :restrict_with_exception
has_many :statuses, dependent: :restrict_with_error
has_many :statuses, class_name: 'TaskStatus', dependent: :restrict_with_error
enum :icon, { task: 'task', warning: 'warning' }, default: 'task', scopes: false
enum :color, { blue: 'blue', gray: 'gray', yellow: 'yellow', red: 'red' }, default: 'gray', scopes: false