diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-06-03 15:04:47 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-06-04 14:14:20 +0900 |
commit | bcd664f53a4009bc752fbc47e1c4d6f76c0b8cc2 (patch) | |
tree | bf5371ebe3e97e68cb0a8b84680bf32657cbfc12 /db | |
parent | 0d00d02e842a0c4b22d213e00143a08d97597000 (diff) | |
download | gitlab-ce-bcd664f53a4009bc752fbc47e1c4d6f76c0b8cc2.tar.gz |
Fix specs. Rename migration file name which was conflicted with background migration's.
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20180529152628_schedule_to_archive_legacy_traces.rb (renamed from db/post_migrate/20180529152628_archive_legacy_traces.rb) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/post_migrate/20180529152628_archive_legacy_traces.rb b/db/post_migrate/20180529152628_schedule_to_archive_legacy_traces.rb index 12f219f606c..ea782e1596b 100644 --- a/db/post_migrate/20180529152628_archive_legacy_traces.rb +++ b/db/post_migrate/20180529152628_schedule_to_archive_legacy_traces.rb @@ -1,4 +1,4 @@ -class ArchiveLegacyTraces < ActiveRecord::Migration +class ScheduleToArchiveLegacyTraces < ActiveRecord::Migration include Gitlab::Database::MigrationHelpers DOWNTIME = false @@ -21,7 +21,7 @@ class ArchiveLegacyTraces < ActiveRecord::Migration def up queue_background_migration_jobs_by_range_at_intervals( - ::ArchiveLegacyTraces::Build.finished.without_archived_trace, + ::ScheduleToArchiveLegacyTraces::Build.finished.without_archived_trace, BACKGROUND_MIGRATION_CLASS, 5.minutes, batch_size: BATCH_SIZE) |