Project

General

Profile

Revision 2b80fdd9

Added by Ori Rabin almost 6 years ago

Fixes #13043 - Change Parameter inheritance to DockerParameter

View differences:

app/models/docker_container_wizard_states/environment_variable.rb
1 1
module DockerContainerWizardStates
2
  class EnvironmentVariable < Parameter
2
  class EnvironmentVariable < DockerParameter
3 3
    belongs_to :environment, :foreign_key => :reference_id, :inverse_of => :environment_variables,
4 4
                             :class_name => 'DockerContainerWizardStates::Environment'
5
    validates :name, :uniqueness => { :scope => :reference_id }
5
    validates :key, :uniqueness => { :scope => :reference_id }
6 6
  end
7 7
end

Also available in: Unified diff