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 c07cc6c844
commit a4d7a1a771

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