From 0d78442507c11870968a4d4827f4d60104e53764 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 29 Jan 2023 21:25:24 +0100 Subject: [PATCH] Fix up theme value migration --- ...20230129194809_use_body_text_for_raised_texts_in_themes.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db/migrate/20230129194809_use_body_text_for_raised_texts_in_themes.rb b/db/migrate/20230129194809_use_body_text_for_raised_texts_in_themes.rb index b8b574a1..7504cf5c 100644 --- a/db/migrate/20230129194809_use_body_text_for_raised_texts_in_themes.rb +++ b/db/migrate/20230129194809_use_body_text_for_raised_texts_in_themes.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class UseBodyTextForRaisedTextsInThemes < ActiveRecord::Migration[6.1] - def change + def up execute <<~SQUIRREL UPDATE themes SET raised_text = body_text, @@ -9,4 +9,6 @@ class UseBodyTextForRaisedTextsInThemes < ActiveRecord::Migration[6.1] WHERE body_text != 0; SQUIRREL end + + def down; end end