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.

Make Rake task db:schema:load compatible with SQL schema format

#2789

If you in your environment.rb have set "config.active_record.schema_format = :sql" then the Rake task db:schema:load (and the upcoming db:setup task in Rails 3 that depends on it) won't work for you. As it stands, db:schema:load will always attempt to load a Ruby format schema file regardless of your schema format setting. This patch changes db:schema:load to load from db/development_structure.sql if schema format is :sql.

Reported by Peter Marklund · June 11th, 2009 @ 01:36 PM

State: duplicate
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. Ches Martin
    Ches Martin

    Patch needs simple refresh for railties reorganization on edge, but +1 (Peter tagged appropriate stable branch where it applies, I'm just sayin').

    October 29th, 2009 @ 06:42 AM

  2. brentdillingham (at gmail)
    brentdillingham (at gmail)
    • Tag cleared.
    1. Don't see a patch though?

    November 19th, 2009 @ 10:21 PM

  3. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  4. Nick Gauthier
    Nick Gauthier
    • Importance changed from to

    I've submitted a patch to this issue, please consider giving it a +1

    https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets...

    Thanks,
    Nick Gauthier

    August 19th, 2010 @ 07:46 PM

  5. Jeff Kreeftmeijer