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