about summary refs log tree commit diff
path: root/db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb')
-rw-r--r--db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb b/db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb
index 72b7c609d..1c18b85cb 100644
--- a/db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb
+++ b/db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb
@@ -8,10 +8,10 @@ class PreserveOldLayoutForExistingUsers < ActiveRecord::Migration[5.2]
 
     User.where(User.arel_table[:current_sign_in_at].gteq(1.month.ago)).find_each do |user|
       next if Setting.unscoped.where(thing_type: 'User', thing_id: user.id, var: 'advanced_layout').exists?
+
       user.settings.advanced_layout = true
     end
   end
 
-  def down
-  end
+  def down; end
 end