aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorRahul P. Chaudhari <rahul100885@gmail.com>2014-06-17 12:12:26 +0530
committerRahul P. Chaudhari <rahul100885@gmail.com>2014-06-17 12:12:26 +0530
commit17668f34c1c7441ea76577e2e7cca0f7f442222f (patch)
treed0bf4b8e8e1da08d2544027db02971b09de5b7cd /guides/source/configuring.md
parent2c515b337f12278b92465e0f830901f6ce19fd60 (diff)
downloadrails-17668f34c1c7441ea76577e2e7cca0f7f442222f.tar.gz
rails-17668f34c1c7441ea76577e2e7cca0f7f442222f.tar.bz2
rails-17668f34c1c7441ea76577e2e7cca0f7f442222f.zip
[ci skip] doc corrected : ActiveRecord::Base.connections to ActiveRecord::Base.configurations
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r--guides/source/configuring.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index a0f0738fba..3d6b2f79c6 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -552,7 +552,7 @@ development:
$ echo $DATABASE_URL
postgresql://localhost/my_database
-$ bin/rails runner 'puts ActiveRecord::Base.connections'
+$ bin/rails runner 'puts ActiveRecord::Base.configurations'
{"development"=>{"adapter"=>"postgresql", "host"=>"localhost", "database"=>"my_database"}}
```
@@ -569,7 +569,7 @@ development:
$ echo $DATABASE_URL
postgresql://localhost/my_database
-$ bin/rails runner 'puts ActiveRecord::Base.connections'
+$ bin/rails runner 'puts ActiveRecord::Base.configurations'
{"development"=>{"adapter"=>"postgresql", "host"=>"localhost", "database"=>"my_database", "pool"=>5}}
```
@@ -585,7 +585,7 @@ development:
$ echo $DATABASE_URL
postgresql://localhost/my_database
-$ bin/rails runner 'puts ActiveRecord::Base.connections'
+$ bin/rails runner 'puts ActiveRecord::Base.configurations'
{"development"=>{"adapter"=>"sqlite3", "database"=>"NOT_my_database"}}
```