1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

How to use select is updated [ci skip]

This commit is contained in:
soartec-lab 2019-02-24 11:28:45 +09:00
parent d4d53ec426
commit 2d3d2b7128

View file

@ -623,6 +623,8 @@ To select only a subset of fields from the result set, you can specify the subse
For example, to select only `viewable_by` and `locked` columns:
```ruby
Client.select(:viewable_by, :locked)
# OR
Client.select("viewable_by, locked")
```