rgeo/activerecord-postgis-adapter

In Rails 4.2, limits for non-spatial columns are dropped when the schema is dumped

Closed this issue · 0 comments

afn commented

ActiveRecord::ConnectionAdapters::PostGISAdapter::SpatialColumn defines an attr_accessor for limit, which overrides the previous limit method, delegated to cast_type by ActiveRecord::ConnectionAdapters::Column. Thus, limit returns nil for non-spatial columns.