diff --git a/app/models/time_budget_category.rb b/app/models/time_budget_category.rb new file mode 100644 index 0000000..919c076 --- /dev/null +++ b/app/models/time_budget_category.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class TimeBudgetCategory < Enumeration + has_many :time_budgets, foreign_key: :category_id + + OptionName = :enumeration_time_budget_category + + def option_name + OptionName + end +end diff --git a/config/locales/en.yml b/config/locales/en.yml index 0a110b8..6704079 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,3 +1,5 @@ en: field_jobs: Jobs field_job: Job + + enumeration_time_budget_category: Time budget categories