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

executable file 30 lines (24 sloc) 0.493 kb
require 'rubygems'
require 'sinatra'
require 'dm-core'
require 'dm-migrations'
namespace :db do
require './config/database'
desc "Migrate the database"
task :migrate do
DataMapper.auto_migrate!
end
desc "Add some test users"
task :testusers do
us = User.new
us.login = "test"
us.email = "asdf@asdf.de"
us.password = "pw"
us.save
as = User.new
as.login = "foo"
as.email = "yes@asd.de"
as.password = "bar"
as.save
end
end
Jump to Line
Something went wrong with that request. Please try again.