Specifying the output file for a rails schema dump

The other day I was working with a multi-database rails application, and I needed to generate a schema.rb for a secondary database. I assumed that the db:schema:dump rake task could probably take an argument to specify the output filename. But if this is documented anywhere, […]

Read more

Adding custom before and after actions to Rake tasks

While doing some work for a client recently, I had the need to add some custom database setup to the test process for their rails application. We wanted to put this ┬áprocedure in a rake task, but still wanted to be able to just use […]

Read more