rake db:migrate and rake db:create both work on test database, not development database

Posted by geography_guy on Stack Overflow See other posts from Stack Overflow or by geography_guy
Published on 2012-03-29T17:26:58Z Indexed on 2012/03/29 17:29 UTC
Read the original article Hit count: 194

I am new to Stack Overflow and Ruby on Rails. My problem is, when I run the command rake db:create or rake db:migrate, the test database is affected, but the development database is not.

rails (3.2.2)

my database.yml:

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test: &test
  adapter: postgresql
  encoding: unicode
  database: ticketee_test
  pool: 5
  username: ticketee
  password: my_password_here

development: 
  adapter: postgresql
  encoding: unicode
  database: ticketee_development
  pool: 5
  username: ticketee
  password: my_password_here

production:
  adapter: postgresql
  encoding: unicode
  database: ticketee_production
  pool: 5
  username: ticketee
  password: my_password_here

cucumber:
  <<: *test

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby-on-rails-3