diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-03-05 20:23:42 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-03-05 20:53:00 +0300 |
commit | 91ce04678ea78f2042026e8584e5d1069853dbc4 (patch) | |
tree | d26addff8e83b10704ea67ba2c1cd460adf4b9ea /db | |
parent | 0a75de2909152351483b317024fcab2e9bb08e16 (diff) |
Make triggers to be user aware
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170215164610_add_owner_id_to_triggers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20170215164610_add_owner_id_to_triggers.rb b/db/migrate/20170215164610_add_owner_id_to_triggers.rb index 02c77ee4b5e..845c89c703e 100644 --- a/db/migrate/20170215164610_add_owner_id_to_triggers.rb +++ b/db/migrate/20170215164610_add_owner_id_to_triggers.rb @@ -5,6 +5,6 @@ class AddOwnerIdToTriggers < ActiveRecord::Migration def change add_column :ci_triggers, :owner_id, :integer - add_foreign_key :ci_triggers, :users, column: :owner_id, on_delete: :nullify + add_foreign_key :ci_triggers, :users, column: :owner_id, on_delete: :cascade end end |