Skip to content

Commit

Permalink
Add note on using schema_format = :sql with Rails.
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcolm Locke committed Sep 2, 2012
1 parent 9842abf commit 4b058a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions readme.md
Expand Up @@ -90,6 +90,12 @@ queue_classic requires a database table and a PL/pgSQL function to be loaded
into your database. You can load the table and the function by running a migration
or using a rake task.

If you use the migration, and you wish to use commands that reset the database
from the stored schema (e.g. `rake db:reset`), your application must be
configured with `config.active_record.schema_format = :sql` in
`config/application.rb`. If you don't do this, the PL/pgSQL function that
queue_classic creates will be lost when you reset the database.

**db/migrations/add_queue_classic.rb**

```ruby
Expand Down

0 comments on commit 4b058a4

Please sign in to comment.