Sha256: c2ecd01ef6c48edb323d9ebeae99faed8d166142f0e0f7335890afd3b7c38609

Contents?: true

Size: 583 Bytes

Versions: 10

Compression:

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

10 entries across 10 versions & 1 rubygems

Version Path
rflow-1.2.0 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.1.0 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.0.1 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.0.0 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.0.0a6 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.0.0a5 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.0.0a4 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.0.0a3 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.0.0a2 lib/rflow/configuration/migrations/20010101000002_create_components.rb
rflow-1.0.0a1 lib/rflow/configuration/migrations/20010101000002_create_components.rb