diff options
author | James Lopez <james@jameslopez.es> | 2016-06-22 14:12:50 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-06-22 14:12:50 +0200 |
commit | 16ed545e7cb0177612d327df4007433083763cce (patch) | |
tree | 9c8995ded84128233e75b4f1d4901b28a4325a08 /lib | |
parent | df8dd6dea39a45b18dd5b05b396a1cc30ab1ff85 (diff) | |
download | gitlab-ce-16ed545e7cb0177612d327df4007433083763cce.tar.gz |
fix utc error
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/import_export/relation_factory.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/relation_factory.rb b/lib/gitlab/import_export/relation_factory.rb index b872780f20a..92bf7e0a2fc 100644 --- a/lib/gitlab/import_export/relation_factory.rb +++ b/lib/gitlab/import_export/relation_factory.rb @@ -12,6 +12,8 @@ module Gitlab USER_REFERENCES = %w[author_id assignee_id updated_by_id user_id].freeze + BUILD_MODELS = %w[Ci::Build commit_status].freeze + def self.create(*args) new(*args).create end @@ -70,7 +72,7 @@ module Gitlab end def generate_imported_object - if @relation_sym == 'commit_status' # call #trace= method after assigning the other attributes + if BUILD_MODELS.include?(@relation_name) # call #trace= method after assigning the other attributes trace = @relation_hash.delete('trace') imported_object do |object| object.trace = trace |