Created
March 25, 2014 11:39
-
-
Save ldodds/9760027 to your computer and use it in GitHub Desktop.
ons migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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