summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-09-19 16:32:16 -0700
committerStan Hu <stanhu@gmail.com>2016-09-20 06:59:55 -0700
commit6ab34a510bac7535464115881892be1d9849be16 (patch)
tree9cc78d86d2bcbf438925c8b51cdec13370700d98
parent31ff272f763a93b944cd288cc35c54e5c2645ebd (diff)
downloadgitlab-ce-sh-fix-ci-service-cascade.tar.gz
Use force: cascade to drop dependent objects on deprecated ci_services tablesh-fix-ci-service-cascade
Closes #22298
-rw-r--r--db/migrate/20160824103857_drop_unused_ci_tables.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20160824103857_drop_unused_ci_tables.rb b/db/migrate/20160824103857_drop_unused_ci_tables.rb
index 65cf46308d9..cd47004258f 100644
--- a/db/migrate/20160824103857_drop_unused_ci_tables.rb
+++ b/db/migrate/20160824103857_drop_unused_ci_tables.rb
@@ -5,7 +5,7 @@ class DropUnusedCiTables < ActiveRecord::Migration
DOWNTIME = false
def change
- drop_table(:ci_services)
- drop_table(:ci_web_hooks)
+ drop_table(:ci_services, force: :cascade)
+ drop_table(:ci_web_hooks, force: :cascade)
end
end