diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-02-16 03:37:33 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-02-20 07:19:18 +0300 |
commit | 2823d2707e9e1a1d728fc7ae3da16edf6b1ba4e7 (patch) | |
tree | c3145b48f614a8453dc9161f665e6689c31623c4 /app/models/environment.rb | |
parent | 1192526b89f2a6a24bbe6a0abe12443450fef95d (diff) |
Remove unecessary validate: true from belongs_to :project
This does not seem to serve any clear purpose and causes other issues (see https://gitlab.com/gitlab-org/gitlab-ce/issues/43196#note_59275652)
Diffstat (limited to 'app/models/environment.rb')
-rw-r--r-- | app/models/environment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/environment.rb b/app/models/environment.rb index 2f6eae605ee..f78c21aebe5 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -4,7 +4,7 @@ class Environment < ActiveRecord::Base NUMBERS = '0'..'9' SUFFIX_CHARS = LETTERS.to_a + NUMBERS.to_a - belongs_to :project, required: true, validate: true + belongs_to :project, required: true has_many :deployments, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent |