discourse/db/migrate/20241205035402_change_defau...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
337 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
class ChangeDefaultForBadgesIcon < ActiveRecord::Migration[7.2]
def change
change_column_default :badges, :icon, from: "fa-certificate", to: "certificate"
up_only { execute <<~SQL }
UPDATE badges
SET icon = 'certificate'
WHERE icon = 'fa-certificate';
SQL
end
end