Class: FlowContextMigration
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- FlowContextMigration
- Defined in:
- lib/flow_context_migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
14 15 16 |
# File 'lib/flow_context_migration.rb', line 14 def self.down drop_table :flow_contexts end |
.up ⇒ Object
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. 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 |