ruby on rails 4 - Rgeo, activerecord-postgis-adapter does't fire SQL statements for attributes of type point -
so i'm running rgeo
activerecord-postgis-adapter
, have rails 4 app's db.yml file set correctly.
but when set attributes of activerecord model like:
place .create(name: 'some name', geom: rgeo::geographic.spherical_factory(:srid => 4326) .point(latitude,longitude)
and check sql insert statement fires, won't include geom
in insert insert "places" ("name", "some_attr".....
<- no geom attr being inserted.
if has seen before , has idea problem might be, please thanks!
Comments
Post a Comment