summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/migrate/20170526185602_add_stage_id_to_ci_builds.rb2
-rw-r--r--spec/migrations/migrate_build_stage_reference_spec.rb1
2 files changed, 1 insertions, 2 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 e8009e74ea5..d5675d5828b 100644
--- a/db/migrate/20170526185602_add_stage_id_to_ci_builds.rb
+++ b/db/migrate/20170526185602_add_stage_id_to_ci_builds.rb
@@ -13,8 +13,8 @@ class AddStageIdToCiBuilds < ActiveRecord::Migration
end
def down
- remove_concurrent_index :ci_builds, :stage_id
remove_foreign_key :ci_builds, column: :stage_id
+ remove_concurrent_index :ci_builds, :stage_id
remove_column :ci_builds, :stage_id, :integer
end
diff --git a/spec/migrations/migrate_build_stage_reference_spec.rb b/spec/migrations/migrate_build_stage_reference_spec.rb
index 32f9a0c0642..80b321860c2 100644
--- a/spec/migrations/migrate_build_stage_reference_spec.rb
+++ b/spec/migrations/migrate_build_stage_reference_spec.rb
@@ -16,7 +16,6 @@ describe MigrateBuildStageReference, :migration do
#
projects.create!(id: 123, name: 'gitlab1', path: 'gitlab1')
projects.create!(id: 456, name: 'gitlab2', path: 'gitlab2')
- projects.create!(id: 798, name: 'gitlab3', path: 'gitlab3')
# Create CI/CD pipelines
#