Class: CreateFlowStateFlows

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/flow_state/templates/create_flow_state_flows.rb

Overview

Table for flow runs

Instance Method Summary collapse

Instance Method Details

#changeObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/generators/flow_state/templates/create_flow_state_flows.rb', line 5

def change
  create_table :flow_state_flows do |t|
    t.string :type, null: false
    t.string :current_state, null: false
    t.datetime :completed_at
    t.datetime :last_errored_at
    t.json :props
    t.timestamps
  end
end