class CreateConnections
Public Class Methods
down()
click to toggle source
# File lib/rflow/configuration/migrations/20010101000004_create_connections.rb, line 27 def self.down drop_table :connections end
up()
click to toggle source
# 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.timestamps null: false end add_index :connections, :uuid, :unique => true end