diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-11-08 10:46:47 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-12-03 12:04:49 +0100 |
commit | ba5697fd809563cb2fd619d7c50362303ab86434 (patch) | |
tree | 3aeacb4859798379b9a2ed1cf41356e49fb70cae /db/migrate | |
parent | 1756604f90588a746ce6df7e4386830db9b3a485 (diff) | |
download | gitlab-ce-ba5697fd809563cb2fd619d7c50362303ab86434.tar.gz |
Fix legacy migration test
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170918072948_create_job_artifacts.rb | 4 |
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 |