summaryrefslogtreecommitdiff
path: root/db/migrate/20181019032400_add_shards_table.rb
blob: 5e0a6960548dd24130805b6489865e1501829579 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class AddShardsTable < ActiveRecord::Migration
  DOWNTIME = false

  def change
    create_table :shards do |t|
      t.string :name, null: false, index: { unique: true }
    end
  end
end