Sha256: ef46656ad6d2052779b6e36f090ae0d344ff8c7a608398a463ed5aadc7d2d85a

Contents?: true

Size: 595 Bytes

Versions: 4

Compression:

Stored size: 595 Bytes

Contents

class CreateComponents < ActiveRecord::Migration
  def self.up
    create_table(:components, :id => false) do |t|
      t.string :uuid, :limit => 36, :primary => true
      t.string :name
      t.boolean :managed, :default => true
      t.text   :specification
      t.text   :options

      # UUID version of belongs_to :shard
      t.string :shard_uuid

      t.timestamps null: false
    end

    add_index :components, :uuid, :unique => true
    add_index :components, :name, :unique => true
    add_index :components, :shard_uuid
  end

  def self.down
    drop_table :components
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rflow-1.3.2 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.3.1 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.3.0 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.3.0a1 lib/rflow/configuration/migrations/20010101000002_create_components.rb