Is there any way to dump the id too?
roadev opened this issue · 2 comments
roadev commented
I need to generate seeds for certain models with the id, but, by default, id is excluded
How could I include it in the dump?
ryanoblak-okta commented
Hi @roadev, you can explicitly specify EXCLUDE
to include the id
:
rake db:seed:dump EXCLUDE=created_at,updated_at
roadev commented
Thank you! I didn't see it in the docs