aboutsummaryrefslogtreecommitdiff
path: root/db/post_migrate
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-07-21 04:08:00 +0200
committerGitHub <noreply@github.com>2019-07-21 04:08:00 +0200
commitbd87e6667975bc3b5bfaf3e1cdff97e041ed4c98 (patch)
tree911345afb1da6dec8b0fce05d91eb915076e6a40 /db/post_migrate
parent4bd58b7f2da369a608eacb97f832728ddc139ce8 (diff)
downloadmastodon-bd87e6667975bc3b5bfaf3e1cdff97e041ed4c98.tar
mastodon-bd87e6667975bc3b5bfaf3e1cdff97e041ed4c98.tar.gz
mastodon-bd87e6667975bc3b5bfaf3e1cdff97e041ed4c98.tar.bz2
mastodon-bd87e6667975bc3b5bfaf3e1cdff97e041ed4c98.zip
Remove WebSub subscriptions (#11303)
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20190715031050_drop_subscriptions.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/post_migrate/20190715031050_drop_subscriptions.rb b/db/post_migrate/20190715031050_drop_subscriptions.rb
new file mode 100644
index 000000000..3719afe4a
--- /dev/null
+++ b/db/post_migrate/20190715031050_drop_subscriptions.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class DropSubscriptions < ActiveRecord::Migration[5.2]
+ def up
+ drop_table :subscriptions
+ end
+
+ def down
+ raise ActiveRecord::IrreversibleMigration
+ end
+end