Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 449 Bytes
require 'rubygems'
require 'sinatra'
require 'datamapper'
require './config/database'
namespace :db do
require './config/database'
desc 'Load seed data'
task :seed do
DataMapper.repository(:default).adapter.execute("TRUNCATE fractures RESTART IDENTITY CASCADE;")
puts "Removed all records from Fracture table"
end
desc 'Migrate database'
task :migrate do
DataMapper.auto_migrate!
puts "Migrated Database"
end
end