Class: CreateConnections
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateConnections
- Defined in:
- lib/rflow/configuration/migrations/20010101000004_create_connections.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
27 28 29 |
# File 'lib/rflow/configuration/migrations/20010101000004_create_connections.rb', line 27 def self.down drop_table :connections end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rflow/configuration/migrations/20010101000004_create_connections.rb', line 2 def self.up create_table(:connections, :id => false) do |t| t.string :uuid, :limit => 36, :primary => false t.string :name # To allow for multiple types of connections t.string :type # round-robin or broadcast t.string :delivery # Data flows from an output port to an input port t.string :output_port_uuid t.string :output_port_key, :default => '0' t.string :input_port_uuid t.string :input_port_key, :default => '0' t.text :options t. end add_index :connections, :uuid, :unique => true end |