Skip to content

Commit 0146ee7

Browse files
committed
Merge branch 'release/v2.6.10'
2 parents 1de5bfb + bcd2e8c commit 0146ee7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/annotate/annotate_models.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def get_schema_info(klass, header, options = {})
140140
attrs << "not null" unless col.null
141141
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)
142142

143-
col_type = (col.sql_type || col.type).to_s
143+
col_type = (col.type || col.sql_type).to_s
144144
if col_type == "decimal"
145145
col_type << "(#{col.precision}, #{col.scale})"
146146
elsif col_type != "spatial"

lib/annotate/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Annotate
22
def self.version
3-
'2.6.9'
3+
'2.6.10'
44
end
55
end

spec/annotate/annotate_models_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def mock_column(name, type, options={})
4545

4646
stubs = default_options.dup
4747
stubs.merge!(options)
48-
stubs.merge!(:name => name, :sql_type => type, :type => type)
48+
stubs.merge!(:name => name, :type => type)
4949

5050
double("Column", stubs)
5151
end

0 commit comments

Comments
 (0)