Skip to content

Commit

Permalink
Merge pull request #158 from Leventhan/Leventhan-patch-1
Browse files Browse the repository at this point in the history
Fix limit for PostGIS geometry column types
  • Loading branch information
kerrizor committed Aug 6, 2015
2 parents 3ed9d79 + abc5f0a commit d995f37
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 d995f37

Please sign in to comment.