diff options
author | Rydkin Maxim <maks.rydkin@gmail.com> | 2017-03-18 16:44:38 +0300 |
---|---|---|
committer | Rydkin Maxim <maks.rydkin@gmail.com> | 2017-04-04 21:11:24 +0300 |
commit | effcbaf372001b238741fa1174dad588ef190b61 (patch) | |
tree | 0497bc2f783030489bd21dfe9fa510b42bb0a258 /db | |
parent | 2eb7ae9e0732778a9f654328b0d9b283370d86e8 (diff) | |
download | gitlab-ce-effcbaf372001b238741fa1174dad588ef190b61.tar.gz |
fix on_delete
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170312114329_add_auto_canceled_by_id_to_pipeline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20170312114329_add_auto_canceled_by_id_to_pipeline.rb b/db/migrate/20170312114329_add_auto_canceled_by_id_to_pipeline.rb index 5549a4199b2..5156860586a 100644 --- a/db/migrate/20170312114329_add_auto_canceled_by_id_to_pipeline.rb +++ b/db/migrate/20170312114329_add_auto_canceled_by_id_to_pipeline.rb @@ -25,7 +25,7 @@ class AddAutoCanceledByIdToPipeline < ActiveRecord::Migration def up add_column :ci_pipelines, :auto_canceled_by_id, :integer - add_concurrent_foreign_key :ci_pipelines, :ci_pipelines, column: :auto_canceled_by_id, on_delete: 'set null' + add_concurrent_foreign_key :ci_pipelines, :ci_pipelines, column: :auto_canceled_by_id, on_delete: :nullify end def down |