Commit 95576d1a authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'aa-clarify-activerecord-query' into 'master'

Clarify querying ActiveRecord models

See merge request gitlab-org/gitlab!40471
parents 247b55db db4a4b85
......@@ -43,10 +43,13 @@ instance_of_object.method(:foo).source_location
project.method(:private?).source_location
```
## Query an object
## Query the database using an ActiveRecord Model
```ruby
o = Object.where('attribute like ?', 'ex')
m = Model.where('attribute like ?', 'ex%')
# for example to query the projects
projects = Project.where('path like ?', 'Oumua%')
```
## View all keys in cache
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment