From e85b8af05183d1048adc4a39bc3d975af153463d Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Thu, 9 May 2019 09:40:09 -0500 Subject: Second round of Rspec fixes. --- db/migrate/20190508075055_default_protocol_to_activitypub.rb | 5 +++++ db/migrate/20190508075055_remove_protocol_from_accounts.rb | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 db/migrate/20190508075055_default_protocol_to_activitypub.rb create mode 100644 db/migrate/20190508075055_remove_protocol_from_accounts.rb (limited to 'db') 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 -- cgit