Skip to content

Commit

Permalink
Fix limit for PostGIS geometry column types
Browse files Browse the repository at this point in the history
  • Loading branch information
yosriady committed Aug 2, 2015
1 parent 484df63 commit abc5f0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rails_erd/domain/attribute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def type_description
# Returns any non-standard limit for this attribute. If a column has no
# limit or uses a default database limit, this method returns +nil+.
def limit
return if native_type == 'geometry'
return column.limit.to_i if column.limit != native_type[:limit] and column.limit.respond_to?(:to_i)
column.precision.to_i if column.precision != native_type[:precision] and column.precision.respond_to?(:to_i)
end
Expand Down

0 comments on commit abc5f0a

Please sign in to comment.