Skip to content

Commit 39af027

Browse files
committed
docs: add section title and TOC
1 parent 00abda1 commit 39af027

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

user_guide_src/source/dbmgmt/seeds.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ you need to populate the database with sample data that you can develop against,
77
Seeders can contain static data that you don't want to include in a migration, like countries, or geo-coding tables,
88
event or setting information, and more.
99

10+
.. contents::
11+
:local:
12+
:depth: 2
13+
14+
****************
15+
Database Seeders
16+
****************
17+
1018
Database seeders are simple classes that must have a **run()** method, and extend ``CodeIgniter\Database\Seeder``.
1119
Within the **run()** the class can create any form of data that it needs to. It has access to the database
1220
connection and the forge through ``$this->db`` and ``$this->forge``, respectively. Seed files must be

0 commit comments

Comments
 (0)