Class: CreateTaskflowTasks

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

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/generators/templates/create_taskflow_tasks.rb', line 2

def change
    create_table :taskflow_tasks do |t|
        t.integer :index, default: 1
        t.string :name
        t.string :klass
        t.string :state
        t.string :result
        t.text :input
        t.text :output
        t.text :data
        t.float :progress, default: 0
        t.datetime :started_at
        t.datetime :ended_at
        t.text :error
        t.integer :flow_id
    end
end