mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 07:33:50 +08:00
98866ca043
follows up on a571efba
14 lines
428 B
Ruby
14 lines
428 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RenameDeprecatedBadgeIcons < ActiveRecord::Migration[5.2]
|
|
def up
|
|
execute "UPDATE badges SET icon = 'far-clock' WHERE icon = 'fa-clock-o'"
|
|
execute "UPDATE badges SET icon = 'far-eye' WHERE icon = 'fa-eye'"
|
|
end
|
|
|
|
def down
|
|
execute "UPDATE badges SET icon = 'fa-clock-o' WHERE icon = 'far-clock'"
|
|
execute "UPDATE badges SET icon = 'fa-eye' WHERE icon = 'far-eye'"
|
|
end
|
|
end
|