Class: CreateMonitoredProcesses

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/monitored_process_install/templates/create_monitored_processes.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/generators/monitored_process_install/templates/create_monitored_processes.rb', line 2

def change
  create_table :monitored_processes do |t|
    t.string :name
    t.integer :state
    t.integer :pid
    t.integer :elapsed_seconds
    t.string :elapsed_time
    t.text :console_output
    t.text :error_description

    t.timestamps
  end
end