Skip to content

Instantly share code, notes, and snippets.

@gstark
Created May 31, 2013 20:57
Show Gist options
  • Save gstark/5687930 to your computer and use it in GitHub Desktop.
Save gstark/5687930 to your computer and use it in GitHub Desktop.
desc "Rebuild the development database and then seed "
task :rebuild_and_seed_development_database => %w{other_tasks} if Rails.env.development?
# versus
if Rails.env.development?
desc "Rebuild the development database and then seed "
task :rebuild_and_seed_development_database => %w{other_tasks}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment