rgeo / activerecord-spatialite-adapter

ActiveRecord connection adapter for SpatiaLite, based on sqlite3 and rgeo
11 stars 14 forks source link

geometry columns are "not null" by default #2

Closed michael-groble closed 12 years ago

michael-groble commented 12 years ago

In contrast to the postgis adapter, given the following column definition:

  t.multi_polygon :region, srid: 3529

it incorrectly creates the column as not null. Changing the column to

  t.multi_polygon :region, srid: 3529, null: true

solves the problem, but it would be nice for this adapter to support the expected default behavior so the first version creates a nullable column.

dazuma commented 12 years ago

Fixed in release 0.4.1