diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-11 12:01:35 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-11 12:05:04 +0200 |
commit | 1d087e073660130c81bf0917a6fa395886b6e2dc (patch) | |
tree | b51ee85871f41c33804d3770e53047cd8d86315c /lib | |
parent | 6e9924a2245004c6b6adb34028880a46fd5471df (diff) | |
download | gitlab-ce-1d087e073660130c81bf0917a6fa395886b6e2dc.tar.gz |
Freeze mutable constants in stages migration code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/background_migration/migrate_stage_status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/migrate_stage_status.rb b/lib/gitlab/background_migration/migrate_stage_status.rb index 3c9744d1607..b1ff0900709 100644 --- a/lib/gitlab/background_migration/migrate_stage_status.rb +++ b/lib/gitlab/background_migration/migrate_stage_status.rb @@ -2,7 +2,7 @@ module Gitlab module BackgroundMigration class MigrateStageStatus STATUSES = { created: 0, pending: 1, running: 2, success: 3, - failed: 4, canceled: 5, skipped: 6, manual: 7 } + failed: 4, canceled: 5, skipped: 6, manual: 7 }.freeze class Build < ActiveRecord::Base self.table_name = 'ci_builds' |