gourmet / faker

CakePHP 3 plugin to support Faker's data generation/seeding in fixtures, migrations, etc.
MIT License
18 stars 3 forks source link

Provide an example for migrations #1

Closed josegonzalez closed 9 years ago

jadb commented 9 years ago

Sure! Want me to write a post about it or send you an example i have (with basic associations) and you write a post for the awesome cake advent calendar you're publishing?

josegonzalez commented 9 years ago

I wrote an example shell for cakeadvent, but I think something like this should be in your readme as well (and maybe not as a shell?)

jadb commented 9 years ago

right, i had plans of adding the migration example, i might just copy paste what I am using for now and later put up a cleaner example.

i do it in a migration file which gets called by the migrations shell.