diff options
author | James Lopez <james@jameslopez.es> | 2016-05-18 15:22:26 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-05-18 15:22:26 +0200 |
commit | 6956fb6366d78dd979fb1046bcd8b05e6dfd2bf7 (patch) | |
tree | 11203aedf999400e15fca719dd71ddbbc0587f90 | |
parent | 0df21ac712d7afd99b0d38a52e7375b11a4fe269 (diff) | |
download | gitlab-ce-6956fb6366d78dd979fb1046bcd8b05e6dfd2bf7.tar.gz |
update relation factory with new models exceptions
-rw-r--r-- | lib/gitlab/import_export/relation_factory.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/relation_factory.rb b/lib/gitlab/import_export/relation_factory.rb index 082398d1f0f..68319441a63 100644 --- a/lib/gitlab/import_export/relation_factory.rb +++ b/lib/gitlab/import_export/relation_factory.rb @@ -3,7 +3,15 @@ module Gitlab module RelationFactory extend self - OVERRIDES = { snippets: :project_snippets, ci_commits: 'Ci::Commit', statuses: 'commit_status' }.freeze + + OVERRIDES = { snippets: :project_snippets, + ci_commits: 'Ci::Commit', + statuses: 'commit_status', + variables: 'Ci::Variable', + triggers: 'Ci::Trigger', + builds: 'Ci::Build', + hooks: 'ProjectHook' }.freeze + USER_REFERENCES = %w(author_id assignee_id updated_by_id).freeze def create(relation_sym:, relation_hash:, members_mapper:, user_admin:) |