class CreateOperation

Public Class Methods

down() click to toggle source
# File lib/generators/nayati/install/templates/create_operation.rb, line 16
def self.down
  drop_table :workflows
end
up() click to toggle source
# 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.timestamps
  end

  add_index :nayati_operations, :workflow_id
  add_index :nayati_operations, :after_failure_operation_id
  add_index :nayati_operations, :after_success_operation_id
end