Fix migration seeding error
This commit is contained in:
parent
ea1d38da57
commit
01b08242fc
10
plugin.rb
10
plugin.rb
|
@ -241,7 +241,7 @@ SQL
|
||||||
|
|
||||||
def self.enums
|
def self.enums
|
||||||
@enums ||= {
|
@enums ||= {
|
||||||
:'badges.badge_type_id' => BadgeType.all_types,
|
:'badges.badge_type_id' => Enum.new(:gold, :silver, :bronze, start: 1),
|
||||||
:'category_groups.permission_type' => CategoryGroup.permission_types,
|
:'category_groups.permission_type' => CategoryGroup.permission_types,
|
||||||
:'directory_items.period_type' => DirectoryItem.period_types,
|
:'directory_items.period_type' => DirectoryItem.period_types,
|
||||||
:'groups.alias_level' => Group::ALIAS_LEVELS,
|
:'groups.alias_level' => Group::ALIAS_LEVELS,
|
||||||
|
@ -863,12 +863,4 @@ SQL
|
||||||
Discourse::Application.routes.append do
|
Discourse::Application.routes.append do
|
||||||
mount ::DataExplorer::Engine, at: '/admin/plugins/explorer', constraints: AdminConstraint.new
|
mount ::DataExplorer::Engine, at: '/admin/plugins/explorer', constraints: AdminConstraint.new
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
# polyfill
|
|
||||||
class ::BadgeType
|
|
||||||
def self.all_types
|
|
||||||
@all_types ||= Enum.new(:gold, :silver, :bronze, start: 1)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue