Skip to content

ashsidhu/koan-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postgress needs to be installed before npm install can be run brew install postgres for Mac OSX.

create 3 databases

$ CREATE DATABASE koans_development
$ CREATE DATABASE koans_production
$ CREATE DATABASE koans_testing

migration 1 => npm install -g db-migrate

add this to alias in ~/.bash_profile db-migrate --config config/database.json -e <DEVELOPMENT/PRODUCTION/TESTING> -m server/migrations creating Migration db-migrate create --config config/database.json -e <DEVELOPMENT/PRODUCTION/TESTING> -m server/migrations

Running Migration

  • for migration up db-migrate --config config/database.json -e <DEVELOPMENT/PRODUCTION/TESTING> -m server/migrations up
  • for migration down db-migrate --config config/database.json -e <DEVELOPMENT/PRODUCTION/TESTING> -m server/migrations down

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors