Class: CreateWorkflow
- Inherits:
-
Object
- Object
- CreateWorkflow
- Defined in:
- lib/generators/nayati/install/templates/create_workflow.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 |
# File 'lib/generators/nayati/install/templates/create_workflow.rb', line 13 def self.down drop_table :nayati_workflows end |
.up ⇒ Object
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. end add_index :nayati_workflows, :identifier end |