Sha256: 7837efddb26a86611410565cd4f4eeb65132fc5a801c272680fab8f15bbefbd2

Contents?: true

Size: 258 Bytes

Versions: 22

Compression:

Stored size: 258 Bytes

Contents

class CreateUsdaFoodGroups < ActiveRecord::Migration
  def change
    create_table :usda_food_groups, id: false, primary_key: :code do |t|
      t.string  :code, null: false, index: true, uniq: true
      t.string  :description, null: false
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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