diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-11-06 11:29:54 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-11-06 11:29:54 +0300 |
commit | 823a9d351b49a6be8c12cfe06edb4aa6ec08fe95 (patch) | |
tree | 4b831cd9e06c958d2aba5d8f7dece857066187fa /spec | |
parent | ff996108a7c574080a2241ea0cfc4f4b3372cf35 (diff) | |
parent | c1f064cbe39d6008206a0fe31e10f4a5e0c9ad28 (diff) |
Merge branch 'fix/sm/37299-environments-validate-uniqueness-on-url-and-can-cause-silent-deployment-failures' into 'master'
Remove unique validation from external_url in Environment
Closes #37299
See merge request gitlab-org/gitlab-ce!15202
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/environment_spec.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb index f75de0a0d88..1ce1d595c60 100644 --- a/spec/models/environment_spec.rb +++ b/spec/models/environment_spec.rb @@ -18,7 +18,6 @@ describe Environment do it { is_expected.to validate_length_of(:slug).is_at_most(24) } it { is_expected.to validate_length_of(:external_url).is_at_most(255) } - it { is_expected.to validate_uniqueness_of(:external_url).scoped_to(:project_id) } describe '.order_by_last_deployed_at' do let(:project) { create(:project, :repository) } |