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.4.9 app/models/enumeration.rb
reso-0.1.4.8 app/models/enumeration.rb
reso-0.1.4.7 app/models/enumeration.rb
reso-0.1.4.6 app/models/enumeration.rb
reso-0.1.4.5 app/models/enumeration.rb
reso-0.1.4.4 app/models/enumeration.rb
reso-0.1.4.3 app/models/enumeration.rb
reso-0.1.4.2 app/models/enumeration.rb
reso-0.1.4.1 app/models/enumeration.rb
reso-0.1.4.0 app/models/enumeration.rb
reso-0.1.3.1 app/models/enumeration.rb
reso-0.1.3.0 app/models/enumeration.rb
reso-0.1.2.0 app/models/enumeration.rb
reso-0.1.1.0 app/models/enumeration.rb
reso-0.1.0.3 app/models/enumeration.rb
reso-0.1.0.2 app/models/enumeration.rb
reso-0.1.0.1 app/models/enumeration.rb
reso-0.1.0.0 app/models/enumeration.rb