Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

rake db:create does not do what the description says

#5382

commit http://github.com/rails/rails/commit/fbdef7aafe753d2375b16c5dcf70a4... by Mikel Lindsaar changed the behaviour of rake db:create to also generate the test database if in dev env.
this was documented in the task description. I could not find any ticket to this change.

commit http://github.com/rails/rails/commit/983815632cc1d316c7c803a47be28f... by DHH
changed the task description so this behaviour is no longer described properly.

Create the database from config/database.yml for the current Rails.env (use db:create:all to create all dbs in the config)

my question is why was the behaviour changed in the first place?
Additionally creating the test database if in development env seems strange to me, i cant see the reason. And why was this behaviour obscurified afterwards?

Reported by Kane · August 15th, 2010 @ 12:51 AM

State: duplicate
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. x0f
    x0f
    • Assigned user set to DHH

    Seems like a documentation error to me. It's sad that DHH made this mistake in an afford to simplify the rake-task-jitter, thus leading to more readable system, but one which doesn't reflect the actual functionality.

    How ever, I also don't like the way the behaviour was changed, even if it supports a more 'agile' programming style. A more suitable solution would be another development-specific rake task, which addresses this particular problem.

    August 20th, 2010 @ 05:15 PM

  2. Kane
  3. Andrew White
    Andrew White
    • State changed from new to duplicate
    • Assigned user cleared.
    • Importance changed from to Low

    August 23rd, 2010 @ 05:15 PM