13 lines
508 B
Ruby
13 lines
508 B
Ruby
![]() |
# 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
|