farmbot_os/lib/models/schedule.rb

8 lines
274 B
Ruby

# A schedule will store information about when and how often a Sequence should
# execute.
class Schedule < ActiveRecord::Base
UNITS_OF_TIME = %w(minutely hourly daily weekly monthly yearly)
belongs_to :sequence, dependent: :destroy
validates_presence_of :sequence
end