[ci skip] doc corrected : ActiveRecord::Base.connections to ActiveRecord::Base.configurations
This commit is contained in:
parent
2c515b337f
commit
17668f34c1
|
@ -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"}}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue