Sha256: 006b4fcf046eb6b817a5e4706813dabba3632a5d5f00ede0c893cc1a1e80e477

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

module Timescale
  class Job < ActiveRecord::Base
    self.table_name = "timescaledb_information.jobs"
    self.primary_key = "job_id"

    scope :compression, -> { where(proc_name: [:tsbs_compress_chunks, :policy_compression]) }
    scope :refresh_continuous_aggregate, -> { where(proc_name: :policy_refresh_continuous_aggregate) }
    scope :scheduled, -> { where(scheduled: true) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timescaledb-0.1.5 lib/timescale/job.rb