Skip to content

Instantly share code, notes, and snippets.

@tarynsauer
Created January 31, 2014 01:04
Show Gist options
  • Save tarynsauer/8724740 to your computer and use it in GitHub Desktop.
Save tarynsauer/8724740 to your computer and use it in GitHub Desktop.
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