0
habe ich eine Migration in Sequel:Psql Numerisch Typ Preis
Sequel.migration do
up do
create_table(:products) do
primary_key :id
String :name, :null=>false
Numeric :price, :null=>false
Text :description, :null=>false
end
end
down do
drop_table(:products)
end
end
I Numerisch Typ für Preis, und wenn ich jetzt "5" in Form zu bringen, gibt es aus meiner Datenbank als 0.5E1. Was habe ich falsch gemacht?