Sha256: 3933f118661e272bfe1301fa53dbdf17386cc2ddedd6d80558bcbd1d39413a44

Contents?: true

Size: 151 Bytes

Versions: 38

Compression:

Stored size: 151 Bytes

Contents

class Enumeration < ActiveRecord::Base

  validates_presence_of :name
  validates_presence_of :type
  validates_uniqueness_of :name, scope: :type

end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
reso-0.1.6.7 app/models/enumeration.rb
reso-0.1.6.6 app/models/enumeration.rb
reso-0.1.6.5 app/models/enumeration.rb
reso-0.1.6.4 app/models/enumeration.rb
reso-0.1.6.3 app/models/enumeration.rb
reso-0.1.6.2 app/models/enumeration.rb
reso-0.1.6.1 app/models/enumeration.rb
reso-0.1.6 app/models/enumeration.rb
reso-0.1.5.11 app/models/enumeration.rb
reso-0.1.5.10 app/models/enumeration.rb
reso-0.1.5.9 app/models/enumeration.rb
reso-0.1.5.7 app/models/enumeration.rb
reso-0.1.5.6 app/models/enumeration.rb
reso-0.1.5.5 app/models/enumeration.rb
reso-0.1.5.4 app/models/enumeration.rb
reso-0.1.5.3 app/models/enumeration.rb
reso-0.1.5.2 app/models/enumeration.rb
reso-0.1.5.1 app/models/enumeration.rb
reso-0.1.5.0 app/models/enumeration.rb
reso-0.1.4.10 app/models/enumeration.rb