Sha256: 47fb3e38e7d6299fa06801cedaafe24efd7d3a0e1ca2fae129cb99766addf65f

Contents?: true

Size: 651 Bytes

Versions: 3

Compression:

Stored size: 651 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

      # 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
    end

    add_index :connections, :uuid, :unique => true
  end

  def self.down
    drop_table :connections
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rflow-1.0.0a3 lib/rflow/configuration/migrations/20010101000004_create_connections.rb
rflow-1.0.0a2 lib/rflow/configuration/migrations/20010101000004_create_connections.rb
rflow-1.0.0a1 lib/rflow/configuration/migrations/20010101000004_create_connections.rb