Test if argument passed to a migration is present
This commit is contained in:
parent
55f93db876
commit
989785a31d
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ module Gitlab
|
|||
module BackgroundMigration
|
||||
class MigrateBuildStageIdReference
|
||||
def perform(id)
|
||||
raise ArgumentError unless id.is_a?(Integer)
|
||||
raise ArgumentError unless id.present?
|
||||
|
||||
sql = <<-SQL.strip_heredoc
|
||||
UPDATE "ci_builds" SET "stage_id" = (
|
||||
|
|
Loading…
Reference in a new issue