Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20181019032400_add_shards_table.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82287e5c3b5cbb2593a1315c1428e0f1e5ad767e (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class AddShardsTable < ActiveRecord::Migration[4.2]
  DOWNTIME = false

  def change
    create_table :shards do |t|
      t.string :name, null: false, index: { unique: true } # rubocop:disable Migration/AddLimitToStringColumns
    end
  end
end