Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2017-11-08 12:46:47 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-12-03 14:04:49 +0300
commitba5697fd809563cb2fd619d7c50362303ab86434 (patch)
tree3aeacb4859798379b9a2ed1cf41356e49fb70cae /db
parent1756604f90588a746ce6df7e4386830db9b3a485 (diff)
Fix legacy migration test
Diffstat (limited to 'db')
-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