about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-10-27 14:02:05 -0500
committermultiple creatures <dev@multiple-creature.party>2019-10-27 14:02:05 -0500
commitaf9b9777af9601bb2de857e6e4fea0b07d699108 (patch)
tree52d5135e5d8b2e00b64fa8b4db73d176714af251 /db/migrate
parent50401161a55fc46cbfcc4e9bcb7834f5482c05a8 (diff)
add profile option to (locally) block anonymous views of public posts
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20191027182731_add_block_anon_to_accounts.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20191027182731_add_block_anon_to_accounts.rb b/db/migrate/20191027182731_add_block_anon_to_accounts.rb
new file mode 100644
index 000000000..ff3353997
--- /dev/null
+++ b/db/migrate/20191027182731_add_block_anon_to_accounts.rb
@@ -0,0 +1,7 @@
+class AddBlockAnonToAccounts < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured {
+      add_column :accounts, :block_anon, :boolean, null: false, default: false
+    }
+  end
+end