Class: CreateOperation
- Inherits:
-
Object
- Object
- CreateOperation
- Defined in:
- lib/generators/nayati/install/templates/create_operation.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
16 17 18 |
# File 'lib/generators/nayati/install/templates/create_operation.rb', line 16 def self.down drop_table :workflows end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/generators/nayati/install/templates/create_operation.rb', line 2 def self.up create_table :nayati_operations do |t| t.string :name t.integer :after_success_operation_id t.integer :after_failure_operation_id t.integer :workflow_id t. end add_index :nayati_operations, :workflow_id add_index :nayati_operations, :after_failure_operation_id add_index :nayati_operations, :after_success_operation_id end |