fix pg col
This commit is contained in:
parent
2e86208476
commit
337d65c298
5
db/migrate/20180915004420_fix_usda_food.rb
Normal file
5
db/migrate/20180915004420_fix_usda_food.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class FixUsdaFood < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
change_column :usda_foods, :ndbn, :string, limit: 25
|
||||||
|
end
|
||||||
|
end
|
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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|
|
create_table "food_units", force: :cascade do |t|
|
||||||
t.integer "food_id", null: false
|
t.integer "food_id", null: false
|
||||||
@ -157,7 +157,7 @@ ActiveRecord::Schema.define(version: 2018_09_13_204958) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
create_table "usda_foods", force: :cascade do |t|
|
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 "long_description"
|
||||||
t.string "short_description"
|
t.string "short_description"
|
||||||
t.decimal "water", precision: 10, scale: 2
|
t.decimal "water", precision: 10, scale: 2
|
||||||
|
Loading…
Reference in New Issue
Block a user