Sha256: a09886e7d06673083541d1da0da54fbd9313613c811c627a8a35c582d4cd2949

Contents?: true

Size: 234 Bytes

Versions: 14

Compression:

Stored size: 234 Bytes

Contents

module UsdaNutrientDatabase
  class SourceCode < ActiveRecord::Base
    self.table_name = 'usda_source_codes'

    validates :code, presence: true, uniqueness: { allow_blank: true }
    validates :description, presence: true
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
usda-nutrient-database-2.1.2 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-1.5.0 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-1.4.1 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-2.1.1 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-2.1.0 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-2.0.0 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-1.4.0 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-1.3.0 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-1.2.0 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-1.1.0 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-1.0.1 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-1.0.0 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-0.8.1 lib/usda_nutrient_database/source_code.rb
usda-nutrient-database-0.8.0 lib/usda_nutrient_database/source_code.rb