Skip to content

Instantly share code, notes, and snippets.

@ldodds
Created March 25, 2014 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldodds/9760027 to your computer and use it in GitHub Desktop.
Save ldodds/9760027 to your computer and use it in GitHub Desktop.
ons migration
#set environment for mongoid
export RACK_ENV=development
#run data conversion
rake clean convert
#run the data load, using settings from mongoid.yml
bundle exec rake load
#to drop the database, read database name from ENV["ONS_POC_DB"]
#bundle exec rake clean_db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment