diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-10 20:07:15 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-10 20:07:15 -0600 |
commit | 1268277a8c203bcae515e0ccc8b3432119bafed2 (patch) | |
tree | 89fccc698a4a148f70a3ae10faf0ffef260200ec /db/migrate/20200110221920_enable_filters_if_filters_exist.rb | |
parent | 0090aca0453285ed6f4d55758ccd05200025d11a (diff) |
add custom filter master toggle, add media gallery mode, & fix various filter logic + caching bugs
Diffstat (limited to 'db/migrate/20200110221920_enable_filters_if_filters_exist.rb')
-rw-r--r-- | db/migrate/20200110221920_enable_filters_if_filters_exist.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20200110221920_enable_filters_if_filters_exist.rb b/db/migrate/20200110221920_enable_filters_if_filters_exist.rb new file mode 100644 index 000000000..68758a9ef --- /dev/null +++ b/db/migrate/20200110221920_enable_filters_if_filters_exist.rb @@ -0,0 +1,7 @@ +class EnableFiltersIfFiltersExist < ActiveRecord::Migration[5.2] + def up + Account.local.find_each do |account| + account.user.update!(filters_enabled: !account.custom_filters.enabled.blank?) + end + end +end |