Class: CreateWorkflow

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

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/generators/nayati/install/templates/create_workflow.rb', line 13

def self.down
  drop_table :nayati_workflows
end

.upObject



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

def self.up
  create_table :nayati_workflows do |t|
    t.string  :name
    t.integer  :initial_operation_id
    t.string :identifier
    t.timestamps
  end

  add_index :nayati_workflows, :identifier
end