discourse/plugins/discourse-narrative-bot/db/migrate/20230227050146_update_narra...

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

14 lines
375 B
Ruby
Raw Normal View History

2023-02-27 21:42:05 -05:00
# 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