Workflow model

This commit is contained in:
2026-03-21 14:02:55 +02:00
parent 5a7cc10f23
commit dbd849589b
6 changed files with 50 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
# frozen_string_literal: true
class Workflow < ApplicationRecord
belongs_to :project
has_many :tasks, dependent: :restrict_with_exception
has_mnay :statuses, 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
end