setup_models

in lib/gitlab/import_export/project/relation_factory.rb [108:135]


        def setup_models 
          case @relation_name
          when :merge_request_diff_files then setup_diff
          when :note_diff_file then setup_diff
          when :notes, :Note then setup_note
          when :'Ci::Pipeline' then setup_pipeline
          when *BUILD_MODELS then setup_build
          when :issues then setup_work_item
          when :'Ci::PipelineSchedule' then setup_pipeline_schedule
          when :'ProtectedBranch::MergeAccessLevel' then setup_protected_ref_access_level
          when :'ProtectedBranch::PushAccessLevel' then setup_protected_ref_access_level
          when :'ProtectedTag::CreateAccessLevel' then setup_protected_ref_access_level
          when :ApprovalProjectRulesProtectedBranch then setup_merge_approval_protected_branch
          when :releases then setup_release
          when :merge_requests, :MergeRequest, :merge_request then setup_merge_request
          when :approvals then setup_approval
          when :events then setup_event
          when :'DesignManagement::Version' then setup_design_management_version
          end

          update_project_references
          update_group_references

          return unless RELATIONS_WITH_REWRITABLE_USERNAMES.include?(@relation_name) && @rewrite_mentions

          update_username_mentions(@relation_hash)
        end