Class: CreateMiniSchedulerStats

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/mini_scheduler/install/templates/create_mini_scheduler_stats.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/mini_scheduler/install/templates/create_mini_scheduler_stats.rb', line 4

def change
  create_table :scheduler_stats do |t|
    t.string :name, null: false
    t.string :hostname, null: false
    t.integer :pid, null: false
    t.integer :duration_ms
    t.integer :live_slots_start
    t.integer :live_slots_finish
    t.datetime :started_at, null: false
    t.boolean :success
    t.text :error
  end
end