annotate 2.6.9 → 2.6.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.sql_type || col.type).to_s
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"
@@ -1,5 +1,5 @@
1
1
  module Annotate
2
2
  def self.version
3
- '2.6.9'
3
+ '2.6.10'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: annotate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.9
4
+ version: 2.6.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: