Sha256: 7014ae8a7311492ef38e264ae90c589d9cc48074aa02c2b4edfc30b1c2a37e04

Contents?: true

Size: 392 Bytes

Versions: 10

Compression:

Stored size: 392 Bytes

Contents

namespace :db do
  desc "DB: drop, create, migrate"
  task bootstrap: :environment do
    Rake::Task["db:drop"].invoke
    Rake::Task["db:create"].invoke
    Rake::Task["db:migrate"].invoke
  end

  # rake db:bootstrap_and_seed
  desc "Reset DB and seed"
  task bootstrap_and_seed: :environment do
    Rake::Task["db:bootstrap"].invoke
    Rake::Task["db:seed"].invoke
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
fuck_comments-2.3.4 spec/dummy_app/lib/tasks/app_bootstrap.rake
the_comments_ruby-2.3.4 spec/dummy_app/lib/tasks/app_bootstrap.rake
the_comments_ruby-2.3.3 spec/dummy_app/lib/tasks/app_bootstrap.rake
the_comments-2.3.1 spec/dummy_app/lib/tasks/app_bootstrap.rake
the_comments-2.2.2 spec/dummy_app/lib/tasks/app_bootstrap.rake
the_comments-2.2.1 spec/dummy_app/lib/tasks/app_bootstrap.rake
the_comments-2.2.0 spec/dummy_app/lib/tasks/app_bootstrap.rake
the_comments-2.1.0 spec/dummy_app/lib/tasks/app_bootstrap.rake
the_comments-2.0.1 spec/dummy_app/lib/tasks/app_bootstrap.rake
the_comments-2.0.0 spec/dummy_app/lib/tasks/app_bootstrap.rake