Skip to content
Snippets Groups Projects
Commit ee7e4fd3 authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Fix problem with variables saving

parent 1fdd1fa6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -14,6 +14,7 @@ v7.14.0 (unreleased)
- Rename type(s) to stage(s)
- Add missing stage when doing retry
- Require variable keys to be not-empty and unique
- Fix variable saving issue
v7.13.1
- Fix: user could steal specific runner
Loading
Loading
Loading
Loading
@@ -15,7 +15,7 @@ class Variable < ActiveRecord::Base
belongs_to :project
 
validates_presence_of :key
validates_uniqueness_of :key
validates_uniqueness_of :key, scope: :project_id
 
attr_encrypted :value, mode: :per_attribute_iv_and_salt, key: GitlabCi::Application.secrets.db_key_base
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment