-
create file
config/application.ymlwith following content:DB_USER: your_db_username DB_PASS: your_db_password HEROKU_DB: heroku_db_name HEROKU_DB_USER: heroku_db_username HEROKU_DB_PASS: heroku_db_password
-
set the config vars on production using rake heroku:set_vars
-
-
in
db/seeds.rbspecify the countries that should populate the database -
in terminal run
rake db:seed
-
-
-
in terminal run
rake db:clear:all -
check out
lib/tasks/clear_db.rakefor more options
-