Skip to content

Instantly share code, notes, and snippets.

@laser
Created January 23, 2018 19:43
Show Gist options
  • Save laser/704bfa0a2b48ffaed48fc67c558b365c to your computer and use it in GitHub Desktop.
Save laser/704bfa0a2b48ffaed48fc67c558b365c to your computer and use it in GitHub Desktop.
From Zero to DB

If Running Postgres Locally

createuser --superuser --pwprompt stitchfix_owner

Set password to stitchfix_owner, as per config/database.yml

Create Stitchfix Shared Database

Changed working directory to root of Transmetropolitan project.

Then:

copy config/database.yml.example config/database.yml

Then:

rake db:create:all db:structure:load

Create Spectre Database

Change working directory to root of Spectre project.

Then:

cp .env.example .env.development
cp config/database.yml.example config/database.yml

Then:

rake db:create:all db:structure:load
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment