I am trying to build a quick and dirty program to load a shapefile (containing 20,000) polygons into a spatial index. I thought I would do it with Ruby (plain not Rails), ActiveRecord, standalone-migrations, rgeo, spatialite and activerecord-spatialite-adapter. It should be straightforward, I suppose, but perhaps owing to my lack of understanding of Rails itself, I am having issues.
I have a database.yml file I use for establishing ActiveRecord connection:
development:
adapter: spatialite
database: db/tz_shapes.sqlite3
pool: 5
timeout: 5000
When I do a rake db:create, firstly I get a message syaing "db/tz_shapes.sqlite3 already exists". Further when I inspect the database file, it is empty and has no tables - specifically the metadata tables etc. So I am unable to run any migrations.
Is there any quite obviously a problem in what I have described so far?