about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-10 23:04:14 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-10 23:04:14 -0600
commit0f1532aee098049b17ad6b7ecb1d083c856f1d64 (patch)
tree75629111cd2530dc2cfa66ea2c474e9ed14d1581 /db/migrate
parentce72d574879b95bd3da5959062d04037945f292f (diff)
add option for changing the monsterfork api exposure level, defaulting to `full` - if this gives your app indigestion change it to back to `basic` in preferences
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20200111042543_add_visibility_compat_toggle.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20200111042543_add_visibility_compat_toggle.rb b/db/migrate/20200111042543_add_visibility_compat_toggle.rb
new file mode 100644
index 000000000..38c8785c4
--- /dev/null
+++ b/db/migrate/20200111042543_add_visibility_compat_toggle.rb
@@ -0,0 +1,7 @@
+class AddVisibilityCompatToggle < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured do
+      add_column :users, :monsterfork_api, :smallint, null: false, default: 2
+    end
+  end
+end