@@ -2,12 +2,11 @@ Database Seeding
22################
33
44Seed classes are a great way to easily fill your database with data after
5- it's created. By default, they are stored in the `seeds ` directory; however, this
6- path can be changed in your configuration file.
5+ it's created. By default, they are stored in the ``config/Seeds `` directory.
76
87.. note ::
98
10- Database seeding is entirely optional, and Migrations does not create a ` Seeds `
9+ Database seeding is entirely optional, and Migrations does not create a Seeds
1110 directory by default.
1211
1312Creating a New Seed Class
@@ -80,6 +79,22 @@ include as a comma separated value string:
8079 Of course you can use both the ``--limit `` and ``--fields `` options in the
8180 same command call.
8281
82+ .. _custom-seed-migration-templates :
83+
84+ Customizing Seed and Migration templates
85+ ----------------------------------------
86+
87+ Because migrations uses `bake <https://book.cakephp.org/bake >`__ under the hood
88+ you can customize the templates that migrations uses for creating seeds and
89+ migrations by creating templates in your application. Custom templates for
90+ migrations should be on one of the following paths:
91+
92+ - ``ROOT/templates/plugin/Migrations/bake/ ``
93+ - ``ROOT/templates/bake/ ``
94+
95+ For example the seed template is ``Seed/seed.twig `` and its full path would be
96+ **ROOT/templates/plugin/Migrations/bake/Seed/seed.twig **
97+
8398The BaseSeed Class
8499==================
85100
0 commit comments