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.

Add Drop Confirmation to Rake Tasks

#3090

db:schema:load just killed all the rows in my db.

-Solution-

All rake tasks should confirm deletions, drops, and etc...
A -f option could bypass confirmations.
Example:
rm README
rm: remove regular file README'?

Reported by blaines · August 24th, 2009 @ 07:53 AM

State: wontfix
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Betelgeuse
    Betelgeuse

    Your README example is flawed. Your rm is aliased to rm -i.

    betelgeuse@pena ~/test $ rm -i foo.txt
    rm: remove regular file foo.txt'? y
    betelgeuse@pena ~/test $ touch foo.txt
    betelgeuse@pena ~/test $ rm foo.txt
    betelgeuse@pena ~/test $ type rm
    rm is hashed (/bin/rm)</code>
    </pre>
    Tradionally unix utilities assume you know what you are doing.
    

    August 24th, 2009 @ 08:56 AM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to wontfix

    September 25th, 2009 @ 12:45 PM