Sha256: f95e1c1e6e73660677712a92739723594430a636f068872178432282c8fe0047
Contents?: true
Size: 888 Bytes
Versions: 2
Compression:
Stored size: 888 Bytes
Contents
class CreateCronoTriggerSystemTables < ActiveRecord::Migration<%= Rails::VERSION::MAJOR >= 5 ? "[#{ActiveRecord::Migration.current_version}]" : "" %> def change create_table :crono_trigger_workers, id: :string, primary_key: :worker_id do |t| t.integer :max_thread_size, null: false t.integer :current_executing_size, null: false t.integer :current_queue_size, null: false t.string :executor_status, null: false t.string :polling_model_names, null: false t.datetime :last_heartbeated_at, null: false end add_index :crono_trigger_workers, :last_heartbeated_at create_table :crono_trigger_signals do |t| t.string :worker_id, null: false t.string :signal, null: false t.datetime :sent_at, null: false t.datetime :received_at end add_index :crono_trigger_signals, [:sent_at, :worker_id] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
crono_trigger-0.4.0 | lib/generators/crono_trigger/install/templates/install.rb |
crono_trigger-0.3.4 | lib/generators/crono_trigger/install/templates/install.rb |