Sha256: 808f61e7906964c622e8ea0054d05fe574299e99cddb81be44e91726bfcedf9a

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

require_relative 'base'

class Tables::Pollings < Tables::Base

  def self.table(migration)
    create_table migration do |t|
      t.string  :polling_model
      t.integer :polling_model_id
      t.integer :review_time
      t.integer :send_time
      t.integer :duration_time
      t.boolean :active?
      t.datetime :last_execution
      t.datetime :last_review_send
      t.datetime :last_send
      t.boolean :execute?
      t.boolean :send?
      t.boolean :class_polling?
      t.bigint  :rule_id
      t.index   :rule_id, name: 'index_rule_polling_id'

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forcast-0.0.110 lib/forcast/migrations/rule_engine/pollings.rb