annotate 2.6.9 → 2.6.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/annotate/annotate_models.rb +1 -1
- data/lib/annotate/version.rb +1 -1
- metadata +1 -1
@@ -140,7 +140,7 @@ module AnnotateModels
|
|
140
140
|
attrs << "not null" unless col.null
|
141
141
|
attrs << "primary key" if klass.primary_key && (klass.primary_key.is_a?(Array) ? klass.primary_key.collect{|c|c.to_sym}.include?(col.name.to_sym) : col.name.to_sym == klass.primary_key.to_sym)
|
142
142
|
|
143
|
-
col_type = (col.
|
143
|
+
col_type = (col.type || col.sql_type).to_s
|
144
144
|
if col_type == "decimal"
|
145
145
|
col_type << "(#{col.precision}, #{col.scale})"
|
146
146
|
elsif col_type != "spatial"
|
data/lib/annotate/version.rb
CHANGED