Sha256: 10f6856b51e66eac59d715c872601acea1e302523d67fa4f52d8b77ac81d10d5

Contents?: true

Size: 282 Bytes

Versions: 11

Compression:

Stored size: 282 Bytes

Contents

require 'active_record'

module Crono
  # Crono::CronoJob is a ActiveRecord model to store job state
  class CronoJob < ActiveRecord::Base
    self.table_name = 'crono_jobs'
    validates :job_id, presence: true, uniqueness: true

    def self.outdated
      self
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
crono-1.0.1 lib/crono/orm/active_record/crono_job.rb
crono-1.0.0 lib/crono/orm/active_record/crono_job.rb
crono-1.0.0.pre3 lib/crono/orm/active_record/crono_job.rb
crono-1.0.0.pre2 lib/crono/orm/active_record/crono_job.rb
crono-0.9.0 lib/crono/orm/active_record/crono_job.rb
crono-0.8.9 lib/crono/orm/active_record/crono_job.rb
crono-0.8.9.pre lib/crono/orm/active_record/crono_job.rb
crono-0.8.8.pre lib/crono/orm/active_record/crono_job.rb
crono-0.8.7.pre lib/crono/orm/active_record/crono_job.rb
crono-0.8.6.pre lib/crono/orm/active_record/crono_job.rb
crono-0.8.1 lib/crono/orm/active_record/crono_job.rb