Sha256: c92861ce1d8761433499856b08a6e6ab35417aee737af4beb365fefd91bdb684
Contents?: true
Size: 426 Bytes
Versions: 4
Compression:
Stored size: 426 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 null: false 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
4 entries across 4 versions & 1 rubygems