13 lines
337 B
Ruby
13 lines
337 B
Ruby
# 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
|