Skip to content

Commit 050d3f4

Browse files
committed
(chore) Remove 'in_review' status from tasks
Tasks cannot currently get into this state, so let's remove it for now.
1 parent f56e9bc commit 050d3f4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/models/task.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ class Task < ApplicationRecord
55
state :draft
66
state :unstarted, initial: true
77
state :in_progress
8-
state :in_review
98
state :completed
109
state :cancelled
10+
11+
event :completed do
12+
transitions from: %i[in_progress], to: :completed
13+
end
1114
end
1215

1316
validates :status, presence: true

0 commit comments

Comments
 (0)