Sha256: 1cd9d27acff9ff3def45c42c86d96807a4f48a7c1a632d7869b6677b08c58884

Contents?: true

Size: 665 Bytes

Versions: 23

Compression:

Stored size: 665 Bytes

Contents

class CreateUsdaFoods < ActiveRecord::Migration
  def change
    create_table :usda_foods, id: false, primary_key: :nutrient_databank_number do |t|
      t.string  :nutrient_databank_number, null: false, index: true
      t.string  :food_group_code, index: true
      t.string  :long_description, null: false
      t.string  :short_description, null: false
      t.string  :common_names
      t.string  :manufacturer_name
      t.boolean :survey
      t.string  :refuse_description
      t.integer :percentage_refuse
      t.float   :nitrogen_factor
      t.float   :protein_factor
      t.float   :fat_factor
      t.float   :carbohydrate_factor
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
usda-nutrient-database-2.1.2 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-1.5.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-1.4.1 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-2.1.1 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-2.1.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-2.0.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-1.4.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-1.3.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-1.2.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-1.1.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-1.0.1 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-1.0.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-0.8.1 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-0.8.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-0.7.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-0.6.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-0.5.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-0.4.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-0.3.0 db/migrate/2_create_usda_foods.rb
usda-nutrient-database-0.2.0 db/migrate/2_create_usda_foods.rb