diff options
author | Rahul P. Chaudhari <rahul100885@gmail.com> | 2014-06-17 12:12:26 +0530 |
---|---|---|
committer | Rahul P. Chaudhari <rahul100885@gmail.com> | 2014-06-17 12:12:26 +0530 |
commit | 17668f34c1c7441ea76577e2e7cca0f7f442222f (patch) | |
tree | d0bf4b8e8e1da08d2544027db02971b09de5b7cd | |
parent | 2c515b337f12278b92465e0f830901f6ce19fd60 (diff) | |
download | rails-17668f34c1c7441ea76577e2e7cca0f7f442222f.tar.gz rails-17668f34c1c7441ea76577e2e7cca0f7f442222f.tar.bz2 rails-17668f34c1c7441ea76577e2e7cca0f7f442222f.zip |
[ci skip] doc corrected : ActiveRecord::Base.connections to ActiveRecord::Base.configurations
-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 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"}} ``` |