diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-11-17 23:41:28 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-18 02:19:09 -0600 |
commit | f76c29beee697c8861ba2d479a6f3b2214139829 (patch) | |
tree | 84a8dc37d2e2526f34ce60667010fb97b0b6f722 /db/migrate | |
parent | 82f2e265f107c3236fb2e03321d866deba4810c7 (diff) |
Remove unused and incompatable filter settings. These will be re-added in time as they're rewritten to use database-level filtering.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20191118044943_remove_old_filter_columns.rb | 18 | ||||
-rw-r--r-- | db/migrate/20191118064252_remove_context_from_custom_filters.rb | 5 |
2 files changed, 23 insertions, 0 deletions
diff --git a/db/migrate/20191118044943_remove_old_filter_columns.rb b/db/migrate/20191118044943_remove_old_filter_columns.rb new file mode 100644 index 000000000..b5236e7a4 --- /dev/null +++ b/db/migrate/20191118044943_remove_old_filter_columns.rb @@ -0,0 +1,18 @@ +class RemoveOldFilterColumns < ActiveRecord::Migration[5.2] + def change + safety_assured { + remove_column :custom_filters, :no_desc + remove_column :custom_filters, :desc + remove_column :custom_filters, :custom_cw + remove_column :custom_filters, :override_cw + remove_column :custom_filters, :status_text + remove_column :custom_filters, :tags + remove_column :custom_filters, :spoiler + remove_column :custom_filters, :thread + remove_column :custom_filters, :media_only + remove_column :custom_filters, :exclude_media + remove_column :custom_filters, :whole_word + remove_column :custom_filters, :irreversible + } + end +end diff --git a/db/migrate/20191118064252_remove_context_from_custom_filters.rb b/db/migrate/20191118064252_remove_context_from_custom_filters.rb new file mode 100644 index 000000000..3206e9491 --- /dev/null +++ b/db/migrate/20191118064252_remove_context_from_custom_filters.rb @@ -0,0 +1,5 @@ +class RemoveContextFromCustomFilters < ActiveRecord::Migration[5.2] + def change + safety_assured { remove_column :custom_filters, :context } + end +end |