Class: FlowContextMigration

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/flow_context_migration.rb

Class Method Summary collapse

Class Method Details

.downObject



14
15
16
# File 'lib/flow_context_migration.rb', line 14

def self.down
  drop_table :flow_contexts
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/flow_context_migration.rb', line 2

def self.up
  create_table :flow_contexts do |t|
    t.timestamps
    t.string :key
    t.string :type
    t.binary :states
    t.binary :state_data
    t.text   :final_destination
  end
  add_index :flow_contexts, :key, :unique => true
end