Change initial state to new

The initial state needs to be one that is part of the machine.
See the transition README.md
This commit is contained in:
Henne Vogelsang 2019-02-15 01:00:35 +01:00
parent ceeaf7b27b
commit 49b91a1a14
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0

View file

@ -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