Update seeds to use the workflow stages

This commit is contained in:
Mike Dalessio
2025-09-29 13:27:16 -04:00
parent f13da231f7
commit 1553ddce28
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -12,7 +12,9 @@ create_collection("Fizzy", access_to: [ jason, jz, kevin ]).tap do |fizzy|
create_card("Prepare sign-up page", description: "We need to do this before the launch.", collection: fizzy).tap do |card|
card.toggle_assignment(kevin)
card.engage
if stage = card.workflow&.stages&.sample
card.change_stage_to(stage)
end
end
create_card("Plain text mentions", description: "We'll support plain text mentions first.", collection: fizzy).tap do |card|
+3 -1
View File
@@ -75,7 +75,9 @@ collections.each_with_index do |collection_name, index|
travel rand(0..20).minutes
case rand(3)
when 0
card.engage
if stage = card.workflow&.stages&.sample
card.change_stage_to(stage)
end
when 1
card.close
# 2 remains open