influitive/apartment — pull request #9 by virtualstaticvoid (2012-10-23 14:15:01+00:00)
Title: Enhancements to Rake Tasks, structure.sql and Configuration

4 new features:

* Added migration support for Rails applications which use the `schema_format == :sql` configuration. This feature only supports multi-database scenarios in MySQL and Postgres since the schema names are usually contained within the `db/structure.sql` file.
* Added configuration setting `append_environment` so that the Rails environment gets appended to the database name
* Added dynamic helper method the the `Apartment` module so that `Apartment.use_` is possible in addition to `Apartment::Database.switch()` method.
* Added Rake tasks for creating, dropping and resetting apartment databases.