diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-15 14:24:55 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-15 14:24:55 -0600 |
commit | b4b8eaf61cfb0bd6df8fe1cf0d00e55be13dd1f5 (patch) | |
tree | 02f2933e69ae2172281908d0c08836ab0a47df15 /db | |
parent | f40c1ae07ed96e4629389867593ae5fbc6f226ae (diff) |
anti-harassment: add option to toggle whether to allow follows/packmate requests from accounts you've never interacted with before; default to off
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20200115201524_add_allow_unknown_follows_to_users.rb | 7 | ||||
-rw-r--r-- | db/structure.sql | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/db/migrate/20200115201524_add_allow_unknown_follows_to_users.rb b/db/migrate/20200115201524_add_allow_unknown_follows_to_users.rb new file mode 100644 index 000000000..f735c8aa8 --- /dev/null +++ b/db/migrate/20200115201524_add_allow_unknown_follows_to_users.rb @@ -0,0 +1,7 @@ +class AddAllowUnknownFollowsToUsers < ActiveRecord::Migration[5.2] + def change + safety_assured { + add_column :users, :allow_unknown_follows, :boolean, null: false, default: false + } + end +end diff --git a/db/structure.sql b/db/structure.sql index 06dafb256..e3ba0572e 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -2429,7 +2429,8 @@ CREATE TABLE public.users ( media_only boolean DEFAULT false NOT NULL, filter_undescribed boolean DEFAULT false NOT NULL, filters_enabled boolean DEFAULT false NOT NULL, - monsterfork_api smallint DEFAULT 2 NOT NULL + monsterfork_api smallint DEFAULT 2 NOT NULL, + allow_unknown_follows boolean DEFAULT false NOT NULL ); @@ -5468,6 +5469,7 @@ INSERT INTO "schema_migrations" (version) VALUES ('20200110221920'), ('20200111042543'), ('20200114011918'), -('20200114030940'); +('20200114030940'), +('20200115201524'); |