about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorpluralcafe-docker <git@plural.cafe>2019-01-21 04:35:29 +0000
committerpluralcafe-docker <git@plural.cafe>2019-01-21 04:35:29 +0000
commitb7c67605d5c2110b4a3cd3d8a7b8ef2878cbfe48 (patch)
treea3344b6105b7771983f69c789fb2f7a0c22a8583 /db/migrate
parentfb7ec403227690f897a9a693f2461b94bf7e2582 (diff)
parentaa362ab73dc7121104b3c01800152b9fc56ea396 (diff)
Merge branch 'glitch'
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20190117114553_create_tombstones.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20190117114553_create_tombstones.rb b/db/migrate/20190117114553_create_tombstones.rb
new file mode 100644
index 000000000..06d6d8c5a
--- /dev/null
+++ b/db/migrate/20190117114553_create_tombstones.rb
@@ -0,0 +1,12 @@
+class CreateTombstones < ActiveRecord::Migration[5.2]
+  def change
+    create_table :tombstones do |t|
+      t.belongs_to :account, foreign_key: { on_delete: :cascade }
+      t.string :uri, null: false
+
+      t.timestamps
+    end
+
+    add_index :tombstones, :uri
+  end
+end