Skip to content

Commit 5ed2d89

Browse files
authored
Merge pull request rails#37968 from p8/guides/ar-query-interface-intro-title
Add missing first title to AR Query Interface guide [ci skip]
2 parents 858e429 + bcf54ca commit 5ed2d89

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

guides/source/active_record_querying.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ After reading this guide, you will know:
1818

1919
--------------------------------------------------------------------------------
2020

21+
What is the Active Record Query Interface?
22+
------------------------------------------
23+
2124
If you're used to using raw SQL to find database records, then you will generally find that there are better ways to carry out the same operations in Rails. Active Record insulates you from the need to use SQL in most cases.
2225

26+
Active Record will perform queries on the database for you and is compatible with most database systems, including MySQL, MariaDB, PostgreSQL, and SQLite. Regardless of which database system you're using, the Active Record method format will always be the same.
27+
2328
Code examples throughout this guide will refer to one or more of the following models:
2429

2530
TIP: All of the following models use `id` as the primary key, unless specified otherwise.
@@ -50,8 +55,6 @@ class Role < ApplicationRecord
5055
end
5156
```
5257

53-
Active Record will perform queries on the database for you and is compatible with most database systems, including MySQL, MariaDB, PostgreSQL, and SQLite. Regardless of which database system you're using, the Active Record method format will always be the same.
54-
5558
Retrieving Objects from the Database
5659
------------------------------------
5760

0 commit comments

Comments
 (0)