mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 11:14:45 +08:00
Remove color_hexcode column from badge_types.
This commit is contained in:
@ -1,17 +1,14 @@
|
||||
BadgeType.seed do |b|
|
||||
b.id = 1
|
||||
b.name = I18n.t('badges.types.gold')
|
||||
b.color_hexcode = "ffd700"
|
||||
b.name = "Gold"
|
||||
end
|
||||
|
||||
BadgeType.seed do |b|
|
||||
b.id = 2
|
||||
b.name = I18n.t('badges.types.silver')
|
||||
b.color_hexcode = "c0c0c0"
|
||||
b.name = "Silver"
|
||||
end
|
||||
|
||||
BadgeType.seed do |b|
|
||||
b.id = 3
|
||||
b.name = I18n.t('badges.types.bronze')
|
||||
b.color_hexcode = "cd7f32"
|
||||
b.name = "Bronze"
|
||||
end
|
||||
|
@ -0,0 +1,5 @@
|
||||
class RemoveColorHexcodeFromBadgeTypes < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :badge_types, :color_hexcode, :string
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user