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.

Clarifying rake:db:migrate & dump

#1364

I was confused as to why certain database tables were mysteriously reappearing in my db/schema.rb file, even though I (thought) I'd removed them a long time ago.

Here's what I think is happening:

1) I run rake db:migrate 2) this invokes the db:schema:dump task 3) this adds any tables/columns that exist in the actual database schema to db/schema.rb

I'm not sure if this is the case, but I wanted to file a ticket in the hopes that someone could confirm and document this. I'm attaching a documentation patch in the hopes that I'm understanding what's going on correctly.

Thanks!

Reported by Trevor Turk · November 12th, 2008 @ 09:38 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Trevor Turk
    Trevor Turk
    • Assigned user cleared.

    This has been committed to docrails:

    http://github.com/lifo/docrails/...

    I don't think I'm able to close this ticket, though.

    November 15th, 2008 @ 06:55 PM

  2. Pratik
    Pratik
    • State changed from new to resolved

    November 15th, 2008 @ 07:17 PM