-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option INCLUDE=id #96
base: master
Are you sure you want to change the base?
Conversation
@ysksn The following should dump the
Does this not work for you? |
I want :id, :name, and :age, Thanks |
So your total set of columns is
Correct? How about |
It works, but I want option which explicitly add column(s) A) SeedDump.dump(User, exclude: []) # Difficult to know if :id is included
SeedDump.dump(User, include: [:id]) # OK, :id is included B) SeedDump.dump(User, exclude: [:phone, :created_at, :updated_at]) # Difficult to know if :id is included
SeedDump.dump(User, exclude: [:phone], include: [:id]) # OK, :id is included |
I wanted
:id
column.