Permalink
Browse files

Create rubyflow:reset rake task

  • Loading branch information...
rubyhero committed Jun 30, 2018
1 parent 0083573 commit 23b41e546e30a8fa735e066778463127c267792d
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/tasks/rubyflow.rake
@@ -0,0 +1,10 @@
namespace :rubyflow do
desc "Drop the database, create new, run migrations and insert initial data in the database"
task :reset => :environment do |t|
Rake::Task["db:drop"].invoke
Rake::Task["db:create"].invoke
Rake::Task["db:migrate"].invoke
Rake::Task["db:seed"].invoke
Rake::Task["db:test:prepare"].invoke
end
end

0 comments on commit 23b41e5

Please sign in to comment.