diff options
Diffstat (limited to 'lib/gitlab/github_import/importer/pull_requests_importer.rb')
-rw-r--r-- | lib/gitlab/github_import/importer/pull_requests_importer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/importer/pull_requests_importer.rb b/lib/gitlab/github_import/importer/pull_requests_importer.rb index d7eaa5a470b..fc0c099b71c 100644 --- a/lib/gitlab/github_import/importer/pull_requests_importer.rb +++ b/lib/gitlab/github_import/importer/pull_requests_importer.rb @@ -38,7 +38,7 @@ module Gitlab # deliberate. If we were to update this column after the fetch we may # miss out on changes pushed during the fetch or between the fetch and # updating the timestamp. - project.update_column(:last_repository_updated_at, Time.zone.now) + project.touch(:last_repository_updated_at) # rubocop: disable Rails/SkipsModelValidations project.repository.fetch_remote(project.import_url, refmap: Gitlab::GithubImport.refmap, forced: true) |