diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-21 10:32:45 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-21 13:18:38 +0200 |
commit | 6b9608e13e20fe579b861b911880603a372f2f27 (patch) | |
tree | b78f460139e23a43c41e91a443eb70b6834704da /db/migrate | |
parent | 4b0b2f1525be5feac0ae0953eb573ff24cc7b9c5 (diff) | |
download | gitlab-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.rb | 4 |
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 |