diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-09-08 16:01:59 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-09-09 16:00:13 +0300 |
commit | 4f05ba7f6b122a8020d229690344df71a8017021 (patch) | |
tree | 1d5ec3c9ce8773835f2e6f82db64ad25b7af242d /guides | |
parent | 5f35c60f848dda275e34bc055f58031c08d7b416 (diff) | |
download | rails-4f05ba7f6b122a8020d229690344df71a8017021.tar.gz rails-4f05ba7f6b122a8020d229690344df71a8017021.tar.bz2 rails-4f05ba7f6b122a8020d229690344df71a8017021.zip |
Fix sqlite3 url config in "Configuring Rails Applications" guide
See `ConnectionUrlResolver#database_from_path` in
`activerecord/lib/active_record/connection_adapters/connection_specification.rb`
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 8c95187fa4..c2ec5b8994 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -954,7 +954,7 @@ The only way to explicitly not use the connection information in `ENV['DATABASE_ ``` $ cat config/database.yml development: - url: sqlite3://NOT_my_database + url: sqlite3:NOT_my_database $ echo $DATABASE_URL postgresql://localhost/my_database @@ -966,8 +966,8 @@ $ rails runner 'puts ActiveRecord::Base.configurations.inspect' #<ActiveRecord::DatabaseConfigurations:0x00007fc8eab02880 @configurations=[ #<ActiveRecord::DatabaseConfigurations::UrlConfig:0x00007fc8eab020b0 @env_name="development", @spec_name="primary", - @config={"adapter"=>"sqlite3", "database"=>"NOT_my_database", "host"=>"localhost"} - @url="sqlite3://NOT_my_database"> + @config={"adapter"=>"sqlite3", "database"=>"NOT_my_database"} + @url="sqlite3:NOT_my_database"> ] ``` |