diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-11-08 12:46:47 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-12-03 14:04:49 +0300 |
commit | ba5697fd809563cb2fd619d7c50362303ab86434 (patch) | |
tree | 3aeacb4859798379b9a2ed1cf41356e49fb70cae /db | |
parent | 1756604f90588a746ce6df7e4386830db9b3a485 (diff) |
Fix legacy migration test
Diffstat (limited to 'db')
-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 |