Created
January 31, 2014 01:04
-
-
Save tarynsauer/8724740 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require './init' | |
require 'rake' | |
require 'pry' | |
namespace :db do | |
desc "Migrate the database" | |
task :migrate do | |
puts "Migrating database" | |
DataMapper.auto_migrate! | |
end | |
desc "Upgrade the database" | |
task :upgrade do | |
puts "Upgrading the database" | |
DataMapper.auto_upgrade! | |
end | |
desc "Populate the database with dummy data by running scripts/applicants.rb" | |
task :seed do | |
puts "Seeding database" | |
require './scripts/applicants.rb' | |
end | |
desc "Migrate and Seed database" | |
task :funky => [ "db:migrate", "db:seed" ] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment