Sha256: d93b12591133b58de52c1e62643c03b9fd7d79092be20a926549fedef07a0290

Contents?: true

Size: 722 Bytes

Versions: 4

Compression:

Stored size: 722 Bytes

Contents

class CreateConnections < ActiveRecord::Migration
  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

  def self.down
    drop_table :connections
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rflow-1.3.2 lib/rflow/configuration/migrations/20010101000004_create_connections.rb
rflow-1.3.1 lib/rflow/configuration/migrations/20010101000004_create_connections.rb
rflow-1.3.0 lib/rflow/configuration/migrations/20010101000004_create_connections.rb
rflow-1.3.0a1 lib/rflow/configuration/migrations/20010101000004_create_connections.rb