assemblymade/coderwall — pull request #49 by RexMorgan (2014-07-14 00:41:57+00:00)
Title: Migrating data from mongo to postgres w/ mosql

I've succeeded in setting up mosql to import the data from mongo to postgres.

I did a `gem install mosql` then `mosql -c collections.yml --sql postgres://localhost/coderwall_development --mongo mongodb://localhost`

In order for mosql to tail the oplog of mongo, it needs to be a replset, so it's not fully working locally. Before this is pushed to production, `badgify_development` will need to be change to whatever the database is called in production.

This will throw all arrays of data into an `_extra_props` field which we can pull out and parse as json, for now.