about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-05-09 09:40:09 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:23 -0500
commite85b8af05183d1048adc4a39bc3d975af153463d (patch)
tree0cda58965ce9c8104cd65a6761678f2154bacd08 /db/migrate
parent66886d4367b64d6860c55ab6f8a57a31ed9b59de (diff)
Second round of Rspec fixes.
Diffstat (limited to 'db/migrate')
-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