Commit e931f734 by Robert Wahler

don't show column limit for integers

Changing between sqlite and mysql causes schema info to change for integers. This is needless noise.
parent 14b5fb22
...@@ -59,7 +59,7 @@ module AnnotateModels ...@@ -59,7 +59,7 @@ module AnnotateModels
if col_type == "decimal" if col_type == "decimal"
col_type << "(#{col.precision}, #{col.scale})" col_type << "(#{col.precision}, #{col.scale})"
else else
col_type << "(#{col.limit})" if col.limit col_type << "(#{col.limit})" if (col.limit && col_type != "integer")
end end
# Check out if we got a geometric column # Check out if we got a geometric column
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment