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.

create the db directory if it doesn't exist (sqlite, rake db:create)

#1477

If someone has checked out a rails app missing the db folder, the rake db:create and db:create:all tasks will run without finishing. I added a bit to create the folder (if the DB is /sqlite/) and move on.

Reported by cdmwebs · November 26th, 2008 @ 08:32 AM

State: wontfix
Milestone: 2.x
Assigned to: Pratik Pratik
Importance: none

Activity

  1. cdmwebs
  2. Daniel Schierbeck
    Daniel Schierbeck

    This will only be an issue if there aren't any migrations, as they reside in db/migrate, forcing the creation of the db directory. Still, some users may not use Active Record migrations, or none has been added yet, so there's no harm in playing it safe.

    December 30th, 2008 @ 04:39 PM

  3. Pratik
    Pratik
    • Assigned user set to Pratik
    • State changed from new to wontfix

    db/ folder should be there in the repository with the schema.rb file in it, even if schema.rb is empty.

    Thanks !

    March 8th, 2009 @ 02:24 PM