From a4d7a1a7712f5b8b5aca27848dcfeebcc5832a63 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Fri, 15 Feb 2019 01:00:35 +0100 Subject: [PATCH] Change initial state to new The initial state needs to be one that is part of the machine. See the transition README.md --- app/models/track.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/track.rb b/app/models/track.rb index 96ad9593..d34bfbef 100644 --- a/app/models/track.rb +++ b/app/models/track.rb @@ -45,7 +45,7 @@ class Track < ApplicationRecord scope :cfp_active, -> { where(cfp_active: true) } scope :self_organized, -> { where.not(submitter: nil) } - state_machine initial: :pending do + state_machine initial: :new do state :new state :to_accept state :accepted