14 lines
375 B
Ruby
14 lines
375 B
Ruby
# frozen_string_literal: true
|
|
|
|
class UpdateNarrativeBadgeIcons < ActiveRecord::Migration[7.0]
|
|
def change
|
|
execute <<~SQL
|
|
UPDATE badges
|
|
SET icon = 'stamp'
|
|
WHERE
|
|
name IN ('#{DiscourseNarrativeBot::NewUserNarrative::BADGE_NAME}', '#{DiscourseNarrativeBot::AdvancedUserNarrative::BADGE_NAME}')
|
|
AND icon = 'fa-certificate'
|
|
SQL
|
|
end
|
|
end
|