Sha256: 4ed1f4821d7b6cb764ff9e265b3c7feb89b713912ae21f9cfc00b519f50836aa
Contents?: true
Size: 453 Bytes
Versions: 6
Compression:
Stored size: 453 Bytes
Contents
module UsdaNutrientDatabase class Weight < ActiveRecord::Base self.table_name = 'usda_weights' validates :nutrient_databank_number, presence: true, uniqueness: { scope: :sequence_number } validates :sequence_number, presence: true, uniqueness: { scope: :nutrient_databank_number } validates :amount, presence: true validates :measurement_description, presence: true validates :gram_weight, presence: true end end
Version data entries
6 entries across 6 versions & 1 rubygems