fix pg col

This commit is contained in:
Dan Elbert 2018-09-14 19:46:02 -05:00
parent 2e86208476
commit 337d65c298
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
class FixUsdaFood < ActiveRecord::Migration[5.2]
def change
change_column :usda_foods, :ndbn, :string, limit: 25
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2018_09_13_204958) do
ActiveRecord::Schema.define(version: 2018_09_15_004420) do
create_table "food_units", force: :cascade do |t|
t.integer "food_id", null: false
@ -157,7 +157,7 @@ ActiveRecord::Schema.define(version: 2018_09_13_204958) do
end
create_table "usda_foods", force: :cascade do |t|
t.string "ndbn", limit: 5, null: false
t.string "ndbn", limit: 25, null: false
t.string "long_description"
t.string "short_description"
t.decimal "water", precision: 10, scale: 2