Class: CreateWorkflow

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/burstflow/install/templates/create_workflow.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/generators/burstflow/install/templates/create_workflow.rb', line 3

def change
  enable_extension 'pgcrypto'

  create_table :burstflow_workflows, id: :uuid do |t|
    t.string :type, index: true
    t.string :status, index: true
    t.jsonb :flow, null: false, default: {}

    t.timestamps
  end
end