dump only dumping one tabe
ljonny18 opened this issue · 3 comments
ljonny18 commented
When I run rake db:seed:dump only one (my first) table is being dumped to my seeds.rb file :(
Am i doing something wrong ?
Thanks,
Jon.
XXChester commented
👍
I am having the same issue except only 3 of my 32 tables are being dumped when I run "rake db:seed:dump". I cannot see anything I am doing wrong.
XXChester commented
@ljonny18 I created a PR that fixes this issue but if you want a quick solution, open seed_dump/lib/seed_dump/dump_methods.rb and change this line:
record.attributes.select {|key| key.is_a?(String) }.each do |attribute, value|
to
record.attributes.select {|key| key.is_a?(String) || key.is_a?(Symbol) }.each do |attribute, value|
rroblak commented
Thanks @XXChester, I merged your PR.