I want to select only specific attributes from a model(id,name).
The SQL-command can be for example:
SELECT id,name,username FROM Users
Do you know h
We can use select for symbol or string such as:
select
symbol
string
User.select("id, name, username")
or
User.select(:id, :name, :username)