diff options
author | Stan Hu <stanhu@gmail.com> | 2016-09-19 16:32:16 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-09-20 06:59:55 -0700 |
commit | 6ab34a510bac7535464115881892be1d9849be16 (patch) | |
tree | 9cc78d86d2bcbf438925c8b51cdec13370700d98 | |
parent | 31ff272f763a93b944cd288cc35c54e5c2645ebd (diff) | |
download | gitlab-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.rb | 4 |
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 |