parsley/db/migrate/20160122223819_create_usda_nutrients.usda_nutrient_database_engine.rb

13 lines
508 B
Ruby
Raw Normal View History

2016-01-22 17:46:28 -06:00
# This migration comes from usda_nutrient_database_engine (originally 4)
class CreateUsdaNutrients < ActiveRecord::Migration
def change
create_table :usda_nutrients, id: false, primary_key: :nutrient_number do |t|
t.string :nutrient_number, null: false, index: true
t.string :units, null: false
t.string :tagname
t.string :nutrient_description, null: false
t.string :number_decimal_places, null: false
t.integer :sort_record_order, null: false
end
end
end