Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 931 Bytes

set_up.md

File metadata and controls

42 lines (30 loc) · 931 Bytes

Test to see if you have your rake commands by typing: rake into terminal.

 $ rake
=> 
  rake -T: Will list all other rake tasks.
  rake db:setupC9: Will set up your Cloud 9 workspace
  rake db:create: Will create a database
  rake db:migrate: Will run migrations
  rake db:drop: Will drop the database
  rake db:create_migration: Will create a migration

If you get a warning about unresolved specs run bundle clean --force to cleanup any unneeded gems

Test postgres is working with the password given to you by the instructor.

 $ psql -U postgres
 postgres=#

Type \q to quit postgres.

Add the username and password given to you by the instructor to the database.yml file.

Set up postgres for MCS database. (Only needs to happen once.)

  $ rake db:setupMCS

Check that you can connect to your database using irb.

 $ irb
2.3.1 :002 > require './app.rb'
 => true 
2.3.1 :007 > exit