about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20190508075055_default_protocol_to_activitypub.rb5
-rw-r--r--db/migrate/20190508075055_remove_protocol_from_accounts.rb5
2 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20190508075055_default_protocol_to_activitypub.rb b/db/migrate/20190508075055_default_protocol_to_activitypub.rb
new file mode 100644
index 000000000..807d6a501
--- /dev/null
+++ b/db/migrate/20190508075055_default_protocol_to_activitypub.rb
@@ -0,0 +1,5 @@
+class DefaultProtocolToActivityPub < ActiveRecord::Migration[5.2]
+  def change
+    change_column_default :accounts, :protocol, 1
+  end
+end
diff --git a/db/migrate/20190508075055_remove_protocol_from_accounts.rb b/db/migrate/20190508075055_remove_protocol_from_accounts.rb
new file mode 100644
index 000000000..c644272d9
--- /dev/null
+++ b/db/migrate/20190508075055_remove_protocol_from_accounts.rb
@@ -0,0 +1,5 @@
+class RemoveProtocolFromAccounts < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured { remove_column :accounts, :protocol }
+  end
+end