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