2018-10-19 12:17:50 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-13 07:27:31 +00:00
|
|
|
class AddShardsTable < ActiveRecord::Migration[4.2]
|
2018-10-19 12:17:50 +00:00
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def change
|
|
|
|
create_table :shards do |t|
|
2019-08-23 21:36:12 +00:00
|
|
|
t.string :name, null: false, index: { unique: true } # rubocop:disable Migration/AddLimitToStringColumns
|
2018-10-19 12:17:50 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|