diff options
Diffstat (limited to 'app/models/bulk_import.rb')
-rw-r--r-- | app/models/bulk_import.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/bulk_import.rb b/app/models/bulk_import.rb index 5d646313423..dee55675304 100644 --- a/app/models/bulk_import.rb +++ b/app/models/bulk_import.rb @@ -4,6 +4,8 @@ # projects to a GitLab instance. It associates the import with the responsible # user. class BulkImport < ApplicationRecord + MINIMUM_GITLAB_MAJOR_VERSION = 14 + belongs_to :user, optional: false has_one :configuration, class_name: 'BulkImports::Configuration' @@ -31,4 +33,8 @@ class BulkImport < ApplicationRecord transition any => :failed end end + + def self.all_human_statuses + state_machine.states.map(&:human_name) + end end |