Skip to content

Instantly share code, notes, and snippets.

@jaysonwhelpley
Created September 11, 2020 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaysonwhelpley/8af5aaa5b20fd3264495df1b06308d97 to your computer and use it in GitHub Desktop.
Save jaysonwhelpley/8af5aaa5b20fd3264495df1b06308d97 to your computer and use it in GitHub Desktop.
rails db:reseed
# lib/tasks/db.rake
namespace :db do
desc 'Drop, create, migrate then seed the development database'
task reseed: [ 'db:drop', 'db:create', 'db:migrate', 'db:seed' ] do
puts 'Reseeding completed.'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment