commit
a412dba662
@ -1,5 +1,20 @@
|
||||
class ProjectPackageCategory < ActiveRecord::Base
|
||||
default_scope order: 'position asc'
|
||||
|
||||
EN_NAMES_MAP = {
|
||||
1 => 'front',
|
||||
2 => 'backend',
|
||||
3 => 'mobile',
|
||||
4 => 'database',
|
||||
5 => 'cloud_compute_and_big_data',
|
||||
6 => 'devops_and_test',
|
||||
7 => 'ai',
|
||||
8 => 'other'
|
||||
}
|
||||
|
||||
has_many :project_packages, dependent: :destroy
|
||||
|
||||
def en_name
|
||||
EN_NAMES_MAP[id]
|
||||
end
|
||||
end
|
Loading…
Reference in new issue