Project

General

Profile

Revision 2b80fdd9

Added by Ori Rabin almost 6 years ago

Fixes #13043 - Change Parameter inheritance to DockerParameter

View differences:

app/models/environment_variable.rb
1
class EnvironmentVariable < Parameter
1
class EnvironmentVariable < DockerParameter
2 2
  belongs_to :container, :foreign_key => :reference_id, :inverse_of => :environment_variables
3
  audited :except => [:priority], :associated_with => :container, :allow_mass_assignment => true
4
  validates :name, :uniqueness => { :scope => :reference_id }
3
  audited :associated_with => :container, :allow_mass_assignment => true
4
  validates :key, :uniqueness => { :scope => :reference_id }
5 5
end

Also available in: Unified diff