This project is archived and is in readonly mode.

#2711 ✓stale
Matthias Marschall

New Rake tasks: db:structure:load and db:test:load_structure

Reported by Matthias Marschall | May 25th, 2009 @ 08:54 AM | in 3.x

In the current rake tasks, dealing with schema.rb and with development_structure.sql works slightly different, e.g. the db:test:prepare task uses an existing schema.rb (db:test:load) whereas, when we're using config.active_record.schema_format = :sql, it dumps and then loads the development database using db:test:clone_structure).
This seems to be a little confusing and is a problem, when you want to run a CI server only having test evnironment (and no development). We want to check in development_structure.sql and would like rake to use it (like it does with schema.rb).

I applied a patch adding two rake tasks to databases.rake:
* db:test:load_structure * db:structure:load and changed db:test:prepare to use the new load_structure task now

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages