So I'm running rgeo
with activerecord-postgis-adapter
and have a Rails 4 app's db.yml file set up correctly.
But when I set the attributes of a ActiveRecord model like:
Place
.create(name: 'some name', geom: RGeo::Geographic.spherical_factory(:srid => 4326)
.point(latitude,longitude)
And then check the SQL INSERT statement it fires, it won't include geom
in the INSERT
INSERT INTO "places" ("name", "some_attr".....
<- no geom attr being inserted.
If anyone has seen this before and has an idea to what the problem might be, please help thanks!