diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-10-09 20:01:45 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-10-09 20:01:45 -0500 |
commit | a9a13421269650b0600008d74ab7c97f386e5618 (patch) | |
tree | 79c0c9ac51e376a219042e49f692b9c5bb32adda /db | |
parent | 999ac0672355fe7aa6f57563097a173ed20b99d9 (diff) |
custom filters can now also match posts with missing media descriptions
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20191010005320_add_no_desc_to_custom_filters.rb | 7 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/db/migrate/20191010005320_add_no_desc_to_custom_filters.rb b/db/migrate/20191010005320_add_no_desc_to_custom_filters.rb new file mode 100644 index 000000000..af8144c87 --- /dev/null +++ b/db/migrate/20191010005320_add_no_desc_to_custom_filters.rb @@ -0,0 +1,7 @@ +class AddNoDescToCustomFilters < ActiveRecord::Migration[5.2] + def change + safety_assured { + add_column :custom_filters, :no_desc, :boolean, null: false, default: false + } + end +end diff --git a/db/schema.rb b/db/schema.rb index 9636d0e6a..15bfe9943 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_10_09_231327) do +ActiveRecord::Schema.define(version: 2019_10_10_005320) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -259,6 +259,7 @@ ActiveRecord::Schema.define(version: 2019_10_09_231327) do t.text "custom_cw" t.boolean "override_cw", default: false, null: false t.boolean "desc", default: false, null: false + t.boolean "no_desc", default: false, null: false t.index ["account_id"], name: "index_custom_filters_on_account_id" end |