class CreateShards
Public Class Methods
down()
click to toggle source
# File lib/rflow/configuration/migrations/20010101000001_create_shards.rb, line 18 def self.down drop_table :shards end
up()
click to toggle source
# File lib/rflow/configuration/migrations/20010101000001_create_shards.rb, line 2 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 null: false end add_index :shards, :uuid, :unique => true add_index :shards, :name, :unique => true end