- Fix not allowing environments other than "development", "test" and "production".
- Fix specifying database from a file not working properly.
-
You can now set a custom migrations directory. Take a look at this wiki.
-
You can now set the database to a YAML file. Take a look at this wiki.
- Users are now warned if they use SQLite URLs with 2 slashes.
- The
set :database
command now accepts everything thatActiveRecord::Base.establish_connection
accepts. A Hash is one example:
set :database, {
adapter: "sqlite3",
database: "db/foo.db",
pool: 5,
timeout: 5000
}
- The database is now reset whenever you specify it with
set :database
. - The migrations are now logged just like in Rails.
- If no database is specified, it will try to read from the
DATABASE_URL
environment variable (which is often set in production). This was removed in 1.0.0, but now I'm bringing it back.
- Removed deprecation warnings when using the
#database
helper.
- Fixed the database not working. Sorry, I won't let it happen again.
-
There is no more "default" database. Now you always have to specify the database you want to connect to, it doesn't default to
"sqlite://#{environment}.db"
anymore. -
When you're setting an SQLite database, you now have to put 3 slashes after
sqlite:
instead of 2. So instead ofsqlite://database.db
you have to writesqlite:///database.db
. This is now a valid URL.
- The previous version was yanked, because I forgot to add the
db:rollback
task (I didn't figure out how to test it yet, otherwise I would know it was missing). This version is then actually 0.2.0.
-
Added
db:rollback
rake task. -
If you're using SQLite, you can now specify the path to where you want your database file to be (thanks to @mpalmer for this). Refer to this wiki.
-
Verify connection before requests (a MySQL error which caused the app to disconnect from the database after some longer time).
-
Clear active connections after each request.
-
activerecord
gem is now a dependency, so you don't have to specify it anymore. The required version is >= 3.