summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2017-04-11 14:16:33 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2017-04-11 14:16:33 +0000
commit568052b0c637f99462855c043819aa0dd347ff06 (patch)
tree891a142b8fe451ec5ee0828278113ef3b11dc0f0 /app
parenta9ff23407c9df7da171b4ad07d40ff8a3f4fac24 (diff)
parent962bf01e69add14bceb3a901a143fcfba486abf3 (diff)
downloadgitlab-ce-568052b0c637f99462855c043819aa0dd347ff06.tar.gz
Merge branch 'zj-fk-ci-triggers' into 'master'
Add foreign key on trigger requests See merge request !10537
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/trigger.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/trigger.rb b/app/models/ci/trigger.rb
index b59e235c425..2f64f70685a 100644
--- a/app/models/ci/trigger.rb
+++ b/app/models/ci/trigger.rb
@@ -7,7 +7,7 @@ module Ci
belongs_to :project
belongs_to :owner, class_name: "User"
- has_many :trigger_requests, dependent: :destroy
+ has_many :trigger_requests
has_one :trigger_schedule, dependent: :destroy
validates :token, presence: true, uniqueness: true