Fix up theme value migration
This commit is contained in:
parent
92cb5da58a
commit
0d78442507
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class UseBodyTextForRaisedTextsInThemes < ActiveRecord::Migration[6.1]
|
class UseBodyTextForRaisedTextsInThemes < ActiveRecord::Migration[6.1]
|
||||||
def change
|
def up
|
||||||
execute <<~SQUIRREL
|
execute <<~SQUIRREL
|
||||||
UPDATE themes
|
UPDATE themes
|
||||||
SET raised_text = body_text,
|
SET raised_text = body_text,
|
||||||
|
@ -9,4 +9,6 @@ class UseBodyTextForRaisedTextsInThemes < ActiveRecord::Migration[6.1]
|
||||||
WHERE body_text != 0;
|
WHERE body_text != 0;
|
||||||
SQUIRREL
|
SQUIRREL
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def down; end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue