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:
parent
d4d53ec426
commit
2d3d2b7128
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue