aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2014-04-02 23:06:16 +1030
committerMatthew Draper <matthew@trebex.net>2014-04-03 01:30:27 +1030
commitf846828dae77696daea3bafd91a25a62977be481 (patch)
treefb0deb3d4916990c214ee05d51311386c9ab4250 /guides/source/configuring.md
parentc82483a10abd30310f3360f6ebb6a4dddafdb2ba (diff)
downloadrails-f846828dae77696daea3bafd91a25a62977be481.tar.gz
rails-f846828dae77696daea3bafd91a25a62977be481.tar.bz2
rails-f846828dae77696daea3bafd91a25a62977be481.zip
Revise 'sqlite3:' URL handling for smoother upgrades
Restore the 4.0 behaviour for 'sqlite3:///', but deprecate it. We'll change to the absolute-path interpretation in 4.2. The current "correct" spellings for in-memory, relative, and absolute URLs, respectively, are: sqlite3::memory: sqlite3:relative/path sqlite3:/full/path Substantially reverses/defers fbb79b517f3127ba620fedd01849f9628b78d6ce. Uncovered by @guilleiguaran while investigating #14495, though that sounds like a different issue.
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r--guides/source/configuring.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 460fd3c301..f8f9e9cbd9 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -580,13 +580,13 @@ The only way to explicitly not use the connection information in `ENV['DATABASE_
```
$ cat config/database.yml
development:
- url: sqlite3://localhost/NOT_my_database
+ url: sqlite3:NOT_my_database
$ echo $DATABASE_URL
postgresql://localhost/my_database
$ rails runner 'puts ActiveRecord::Base.connections'
-{"development"=>{"adapter"=>"sqlite3", "host"=>"localhost", "database"=>"NOT_my_database"}}
+{"development"=>{"adapter"=>"sqlite3", "database"=>"NOT_my_database"}}
```
Here the connection information in `ENV['DATABASE_URL']` is ignored, note the different adapter and database name.