diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-21 13:22:18 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-21 13:22:18 -0600 |
commit | 8312a6e51017498c417070cbcbf115da184b786d (patch) | |
tree | 21adc50927a531cc204bc6abd6165abdf930d3a6 /db | |
parent | b8f7ccf22729b77fbb5a44ecda01de5329d07adc (diff) |
add option to use phrase filters as an allow list
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20191221183232_add_invert_filters_to_user.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20191221183232_add_invert_filters_to_user.rb b/db/migrate/20191221183232_add_invert_filters_to_user.rb new file mode 100644 index 000000000..d30b865f1 --- /dev/null +++ b/db/migrate/20191221183232_add_invert_filters_to_user.rb @@ -0,0 +1,5 @@ +class AddInvertFiltersToUser < ActiveRecord::Migration[5.2] + def change + add_column :users, :invert_filters, :boolean, null: false, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index f6f1ba209..631469a2a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2019_12_21_164844) do +ActiveRecord::Schema.define(version: 2019_12_21_183232) do # These are extensions that must be enabled in order to support this database enable_extension "pg_trgm" @@ -810,6 +810,7 @@ ActiveRecord::Schema.define(version: 2019_12_21_164844) do t.jsonb "vars", default: {}, null: false t.boolean "hide_boosts" t.boolean "only_known" + t.boolean "invert_filters", default: false, null: false t.index ["account_id"], name: "index_users_on_account_id" t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true t.index ["created_by_application_id"], name: "index_users_on_created_by_application_id" |