about summary refs log tree commit diff
path: root/db/post_migrate
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-05-08 00:01:47 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-05-08 00:01:47 +0200
commitfbf097f7e159e4fabe39bd36b9bc480b3f8b4058 (patch)
tree7b49b6927f676723bf0f34e7e9c2e561553ec167 /db/post_migrate
parentd30dd5b1dbbc8e72cd7aefe5ee39684e068b7118 (diff)
parent81b19e28ff26cbee22f4c6c393391e92d78c61ef (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20210507001928_remove_hub_url_from_accounts.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/post_migrate/20210507001928_remove_hub_url_from_accounts.rb b/db/post_migrate/20210507001928_remove_hub_url_from_accounts.rb
new file mode 100644
index 000000000..83a1f5fcf
--- /dev/null
+++ b/db/post_migrate/20210507001928_remove_hub_url_from_accounts.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+class RemoveHubURLFromAccounts < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured do
+      remove_column :accounts, :secret, :string, null: false, default: ''
+      remove_column :accounts, :remote_url, :string, null: false, default: ''
+      remove_column :accounts, :salmon_url, :string, null: false, default: ''
+      remove_column :accounts, :hub_url, :string, null: false, default: ''
+    end
+  end
+end