summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-21 10:32:45 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-21 13:18:38 +0200
commit6b9608e13e20fe579b861b911880603a372f2f27 (patch)
treeb78f460139e23a43c41e91a443eb70b6834704da /db/migrate
parent4b0b2f1525be5feac0ae0953eb573ff24cc7b9c5 (diff)
downloadgitlab-ce-6b9608e13e20fe579b861b911880603a372f2f27.tar.gz
Fix build stages reference migration
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170526185602_add_stage_id_to_ci_builds.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/db/migrate/20170526185602_add_stage_id_to_ci_builds.rb b/db/migrate/20170526185602_add_stage_id_to_ci_builds.rb
index d5675d5828b..2eeb2c481eb 100644
--- a/db/migrate/20170526185602_add_stage_id_to_ci_builds.rb
+++ b/db/migrate/20170526185602_add_stage_id_to_ci_builds.rb
@@ -7,15 +7,11 @@ class AddStageIdToCiBuilds < ActiveRecord::Migration
def up
add_column :ci_builds, :stage_id, :integer
-
add_concurrent_foreign_key :ci_builds, :ci_stages, column: :stage_id, on_delete: :cascade
- add_concurrent_index :ci_builds, :stage_id
end
def down
remove_foreign_key :ci_builds, column: :stage_id
- remove_concurrent_index :ci_builds, :stage_id
-
remove_column :ci_builds, :stage_id, :integer
end
end