[ci-skip] fix docs for ActiveRecord select_all

This commit is contained in:
ouyangjinting 2021-05-08 16:56:03 +08:00 committed by GitHub
parent 70b6cee5fd
commit 5811af5da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1992,7 +1992,7 @@ This method will return an instance of `ActiveRecord::Result` class and calling
object would return you an array of hashes where each hash indicates a record.
```irb
irb> Customer.connection.select_all("SELECT first_name, created_at FROM customers WHERE id = '1'").to_hash
irb> Customer.connection.select_all("SELECT first_name, created_at FROM customers WHERE id = '1'").to_a
=> [{"first_name"=>"Rafael", "created_at"=>"2012-11-10 23:23:45.281189"}, {"first_name"=>"Eileen", "created_at"=>"2013-12-09 11:22:35.221282"}]
```