スキーマに価格の小数フィールドがあり、価格を挿入しようとするたびに、pgにこのエラーが表示されます。誰かが私に光を与えることができますか?ありがとう
構成
t.decimal "price", :precision => 2, :scale => 2
エラー
PG::Error: ERROR: numeric field overflow
DETAIL: A field with precision 2, scale 2 must round to an absolute value less than 1.
: INSERT INTO "items" ("category_id", "name", "price", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id"