Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.614 kb
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
require 'rake'
Rails::Application.load_tasks
namespace :db do
desc 'Removes database. Run migrations. Run annotate_modes. Run db:test:prepare'
task :redo => :environment do
File.delete("#{Rails.root}/db/development.sqlite3")
Rake::Task["db:migrate"].invoke
Rake::Task["annotate_models"].invoke
Rake::Task["db:test:prepare"].invoke
Rake::Task["db:seed"].invoke
end
end
Jump to Line
Something went wrong with that request. Please try again.