aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorAaron Stone <aaron@serendipity.cx>2013-01-23 01:05:23 -0800
committerAaron Stone <aaron@serendipity.cx>2013-01-31 09:01:20 -0800
commit4b005fb371c2e7af80df7da63be94509b1db038c (patch)
treecd4ecad2d5664b4ab5f4411a2141a32164e0d769 /activerecord/CHANGELOG.md
parentee4a2bb23d46ee3e644293ba59b70fa7ecb3f7eb (diff)
downloadrails-4b005fb371c2e7af80df7da63be94509b1db038c.tar.gz
rails-4b005fb371c2e7af80df7da63be94509b1db038c.tar.bz2
rails-4b005fb371c2e7af80df7da63be94509b1db038c.zip
DATABASE_URL parsing should turn numeric strings into numeric types, and
the strings true and false into boolean types, in order to match how YAML would parse the same values from database.yml and prevent unexpected type errors in the database adapters.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index b987104dd0..71de20a2b9 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,17 @@
## Rails 4.0.0 (unreleased) ##
+* The DATABASE_URL environment variable now converts ints, floats, and
+ the strings true and false to Ruby types. For example, SQLite requires
+ that the timeout value is an integer, and PostgreSQL requires that the
+ prepared_statements option is a boolean. These now work as expected:
+
+ Example:
+
+ DATABASE_URL=sqlite3://localhost/test_db?timeout=500
+ DATABASE_URL=postgresql://localhost/test_db?prepared_statements=false
+
+ *Aaron Stone*
+
* Relation#merge now only overwrites where values on the LHS of the
merge. Consider: