Skip to content

Commit

Permalink
Introduce psql administration
Browse files Browse the repository at this point in the history
  • Loading branch information
dimroc committed May 2, 2012
1 parent 94a9dfb commit db98324
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lectures/04-rails-mvc/4.2-rails-mvc-scaffold.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ common: &common
adapter: postgresql
username: rails
password: password
host: localhost
port: 5432

development:
<<: *common
Expand All @@ -81,6 +79,19 @@ Create the databases.
rake db:create:all
See your created databases with the PostgreSQL commandline:
$ psql rails_development
psql (9.1.2)
Type "help" for help.
rails_development=# \l # list databases
rails_development | <owner> | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
rails_production | <owner> | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
rails_test | <owner> | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
rails_development=# \q # quit
Rakefile
--------
Expand Down

0 comments on commit db98324

Please sign in to comment.