summaryrefslogtreecommitdiff
path: root/app/models/gateway_parameter.rb
blob: 1875863359cb60c1f26f6e799c2cbb3cd73861b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class GatewayParameter < ActiveRecord::Base
  attr_accessible :gateway_id, :name, :value, :class_type, :description

  belongs_to :gateway

  validates :name,
            :presence => true,
            :uniqueness => true

  validates :class_type,
            :presence => true,
            :inclusion => { :in => ['String', 'Integer', 'Boolean'] }
end