Can I pass an argument to rake db:seed?
Rake arguments are painful to pass around, unfortunately (and db:seed
doesn't pass its arguments through, regardless).
Your best bet is to use environment variables to pass your extra args through:
rake db:seed minimal=yes
and
unless ENV["minimal"] # do stuff
etc