about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-10-27 13:45:21 -0500
committermultiple creatures <dev@multiple-creature.party>2019-10-27 13:45:21 -0500
commite80aed27b3109537b2c0dee35c3764028083e294 (patch)
treef7364b90ed2f09e005af050ea742b14ef3c105c4 /db
parent33eda4098c379da686d775a05434b56149e503c6 (diff)
add `unboostable` boolean to account model in preparation for adding more types of moderation polices + allowing authors to make unboostable posts irrespective of scope
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20191014164349_add_unboostable_to_accounts.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20191014164349_add_unboostable_to_accounts.rb b/db/migrate/20191014164349_add_unboostable_to_accounts.rb
new file mode 100644
index 000000000..16d91d5a3
--- /dev/null
+++ b/db/migrate/20191014164349_add_unboostable_to_accounts.rb
@@ -0,0 +1,7 @@
+class AddUnboostableToAccounts < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured {
+      add_column :accounts, :unboostable, :boolean, null: false, default: false
+    }
+  end
+end