From aee5e80038bad2f2796f93d575ae104b1d38d1eb Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Mon, 16 Nov 2020 15:35:07 +0200 Subject: [PATCH] FIX: Disable auto_update for existent themes (#11244) --- .../20201116132948_set_themes_auto_update_false.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20201116132948_set_themes_auto_update_false.rb diff --git a/db/migrate/20201116132948_set_themes_auto_update_false.rb b/db/migrate/20201116132948_set_themes_auto_update_false.rb new file mode 100644 index 00000000000..4adb102e08c --- /dev/null +++ b/db/migrate/20201116132948_set_themes_auto_update_false.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class SetThemesAutoUpdateFalse < ActiveRecord::Migration[6.0] + def up + execute "UPDATE themes SET auto_update = false" + end + + def down + execute "UPDATE themes SET auto_update = true" + end +end