From 9ea2fc85a3387e7bbb10558b3f2302f05abe5b64 Mon Sep 17 00:00:00 2001 From: Andreas Brandl Date: Fri, 20 Apr 2018 14:00:15 +0000 Subject: Atomic internal ids for all models --- app/models/internal_id.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/models/internal_id.rb') diff --git a/app/models/internal_id.rb b/app/models/internal_id.rb index 96a43006642..189942c5ad8 100644 --- a/app/models/internal_id.rb +++ b/app/models/internal_id.rb @@ -12,8 +12,9 @@ # * (Optionally) add columns to `internal_ids` if needed for scope. class InternalId < ActiveRecord::Base belongs_to :project + belongs_to :namespace - enum usage: { issues: 0 } + enum usage: { issues: 0, merge_requests: 1, deployments: 2, milestones: 3, epics: 4 } validates :usage, presence: true -- cgit v1.2.1