debian-mirror-gitlab/app/models/bulk_import.rb
2021-01-30 21:13:32 +05:30

16 lines
400 B
Ruby

# frozen_string_literal: true
class BulkImport < ApplicationRecord
belongs_to :user, optional: false
has_one :configuration, class_name: 'BulkImports::Configuration'
has_many :entities, class_name: 'BulkImports::Entity'
validates :source_type, :status, presence: true
enum source_type: { gitlab: 0 }
state_machine :status, initial: :created do
state :created, value: 0
end
end