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.

Console --sandbox only works for main connection (Potential data loss/corruption)

#3548

If you have a rails app that talks to multiple databases, or has multiple connections to a single database, script/console --sandbox will NOT rollback any changes to models made via connections other than the one associated with ActiveRecord::Base.

At the very least this needs to be explicitly mentioned in big letters in the documentation. We just lost a bunch of data when a developer did a Xxxx.delete_all in sandbox, when Xxxx didn't use AR::Base's connection.

Reported by Andrew Selder · December 8th, 2009 @ 01:44 AM

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

Activity

  1. Ryan Bigg
    Ryan Bigg
    • State changed from new to incomplete
    • Importance changed from to Low

    Please attach a documentation patch for this if you wish to see it fixed.

    October 7th, 2010 @ 10:10 PM

  2. Santiago Pastorino
    Santiago Pastorino
    • State changed from incomplete to open

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 2nd, 2011 @ 04:58 PM

  3. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 04:58 PM