From 26d90a36ff07aa905db63985886d5c08c934b7b6 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 27 Apr 2019 19:19:32 -0500 Subject: Custom filters: add ability to create filters that exclude or are exclusive to roars with attachments. --- db/migrate/20190427232757_add_media_to_filters.rb | 8 ++++++++ db/schema.rb | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 db/migrate/20190427232757_add_media_to_filters.rb (limited to 'db') diff --git a/db/migrate/20190427232757_add_media_to_filters.rb b/db/migrate/20190427232757_add_media_to_filters.rb new file mode 100644 index 000000000..77120a263 --- /dev/null +++ b/db/migrate/20190427232757_add_media_to_filters.rb @@ -0,0 +1,8 @@ +class AddMediaToFilters < ActiveRecord::Migration[5.2] + def change + safety_assured { + add_column :custom_filters, :exclude_media, :boolean, default: false, null: false + add_column :custom_filters, :media_only, :boolean, default: false, null: false + } + end +end diff --git a/db/schema.rb b/db/schema.rb index cd028b0b8..e621feb46 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -247,6 +247,8 @@ ActiveRecord::Schema.define(version: 2019_05_19_130537) do t.datetime "created_at", null: false t.datetime "updated_at", null: false t.boolean "whole_word", default: true, null: false + t.boolean "exclude_media", default: false, null: false + t.boolean "media_only", default: false, null: false t.index ["account_id"], name: "index_custom_filters_on_account_id" end -- cgit