summaryrefslogtreecommitdiff
path: root/db/migrate/20181019032400_add_shards_table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20181019032400_add_shards_table.rb')
-rw-r--r--db/migrate/20181019032400_add_shards_table.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20181019032400_add_shards_table.rb b/db/migrate/20181019032400_add_shards_table.rb
new file mode 100644
index 00000000000..5e0a6960548
--- /dev/null
+++ b/db/migrate/20181019032400_add_shards_table.rb
@@ -0,0 +1,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