seed_dump icon indicating copy to clipboard operation
seed_dump copied to clipboard

Get the id of the table when dump

Open alexander-isaid opened this issue 5 years ago • 1 comments

Hello, how are you? Could you support me? I have tried to dump the ID of the table into a file, I have placed the attribute WITH_ID = 1 but I can't get the id of the table. I appreciate your help.

alexander-isaid avatar Nov 25 '20 05:11 alexander-isaid

When you run the command, id is excluded by default (as listed in the exclude section in the README. Just run rake db:seed:dump EXCLUDE=created_at,updated_at

This will exclude the timestamps but not the id

sbatson5 avatar Feb 22 '21 20:02 sbatson5