diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-08-30 22:03:46 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-08-30 22:03:46 -0500 |
commit | 3b276d268f8e49b897f16f490c78a5a5880c6216 (patch) | |
tree | bcb653e975ab223cf8d048778ab113489bf67b6d /db | |
parent | 60c449e1d77c6e11ced796a7e088038d80137de6 (diff) |
use a scheduled task to batch domain policy changes + revert `29643fd6` to avoid accidentally dosing servers when multiple users block a domain
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190831022432_add_processing_to_domain_blocks.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20190831022432_add_processing_to_domain_blocks.rb b/db/migrate/20190831022432_add_processing_to_domain_blocks.rb new file mode 100644 index 000000000..1a3b3c89c --- /dev/null +++ b/db/migrate/20190831022432_add_processing_to_domain_blocks.rb @@ -0,0 +1,5 @@ +class AddProcessingToDomainBlocks < ActiveRecord::Migration[5.2] + def change + safety_assured { add_column :domain_blocks, :processing, :boolean, null: false, default: true } + end +end diff --git a/db/schema.rb b/db/schema.rb index 16b284b58..4a5115285 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_08_15_232125) do +ActiveRecord::Schema.define(version: 2019_08_31_022432) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -278,6 +278,7 @@ ActiveRecord::Schema.define(version: 2019_08_15_232125) do t.boolean "force_sensitive", default: false, null: false t.text "reason" t.boolean "reject_unknown", default: false, null: false + t.boolean "processing", default: true, null: false t.index ["domain"], name: "index_domain_blocks_on_domain", unique: true end |