summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2017-11-08 10:46:47 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2017-12-03 12:04:49 +0100
commitba5697fd809563cb2fd619d7c50362303ab86434 (patch)
tree3aeacb4859798379b9a2ed1cf41356e49fb70cae /db/migrate
parent1756604f90588a746ce6df7e4386830db9b3a485 (diff)
downloadgitlab-ce-ba5697fd809563cb2fd619d7c50362303ab86434.tar.gz
Fix legacy migration test
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170918072948_create_job_artifacts.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20170918072948_create_job_artifacts.rb b/db/migrate/20170918072948_create_job_artifacts.rb
index 078e3e9dc4e..90152127ed5 100644
--- a/db/migrate/20170918072948_create_job_artifacts.rb
+++ b/db/migrate/20170918072948_create_job_artifacts.rb
@@ -14,8 +14,8 @@ class CreateJobArtifacts < ActiveRecord::Migration
t.datetime_with_timezone :updated_at, null: false
t.string :file
- end
- add_foreign_key :ci_job_artifacts, :ci_builds, column: :job_id, on_delete: :cascade
+ t.foreign_key :ci_builds, column: :job_id, on_delete: :cascade
+ end
end
end