Sha256: 291ceced2df9bc951aab2b9f299489cbdc9382651f7eb1c919ace3daec5d605a

Contents?: true

Size: 414 Bytes

Versions: 10

Compression:

Stored size: 414 Bytes

Contents

class CreateShards < ActiveRecord::Migration
  def self.up
    create_table(:shards, :id => false) do |t|
      t.string :uuid, :limit => 36, :primary => true
      t.string :name
      t.integer :count

      # STI
      t.string :type

      t.timestamps
    end

    add_index :shards, :uuid, :unique => true
    add_index :shards, :name, :unique => true
  end

  def self.down
    drop_table :shards
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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