From d820655934c2ef1451d3d15f4032a4027647e26d Mon Sep 17 00:00:00 2001 From: kedamaDQ Date: Fri, 14 Jun 2019 19:36:10 +0900 Subject: [PATCH] Change default to multi column ui. --- config/settings.yml | 2 +- .../20190529143559_preserve_old_layout_for_existing_users.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/settings.yml b/config/settings.yml index 805624d3e1e165..5a686644972a31 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -31,7 +31,7 @@ defaults: &defaults noindex: false theme: 'default' aggregate_reblogs: true - advanced_layout: false + advanced_layout: true notification_emails: follow: false reblog: false 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 72b7c609d17acf..dc1807d3c16a78 100644 --- a/db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb +++ b/db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb @@ -6,7 +6,7 @@ def up # want to use, therefore ensure that it is saved explicitly and not based # on the to-be-changed default - User.where(User.arel_table[:current_sign_in_at].gteq(1.month.ago)).find_each do |user| + User.where(User.arel_table[:current_sign_in_at].gteq(2.year.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