lib/rocket_job/server/model.rb in rocketjob-5.4.1 vs lib/rocket_job/server/model.rb in rocketjob-6.0.0.rc1

- old
+ new

@@ -26,10 +26,10 @@ # The heartbeat information for this server embeds_one :heartbeat, class_name: "RocketJob::Heartbeat" # Current state # Internal use only. Do not set this field directly - field :state, type: Symbol, default: :starting + field :state, type: Mongoid::StringifiedSymbol, default: :starting index({name: 1}, background: true, unique: true) validates_presence_of :state, :name, :max_workers