Skip to content

Commit

Permalink
Add sequel.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgraff committed Apr 19, 2010
1 parent 3eeb602 commit a45f06e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.rb
@@ -1,6 +1,7 @@
require 'rubygems'
require 'sinatra'
require 'config/init'

get '/hi' do
"Hello World!"
end
end
11 changes: 11 additions & 0 deletions config/init.rb
@@ -0,0 +1,11 @@
require 'sinatra/sequel'
require 'sqlite3'

configure :development do
set :database, 'sqlite://tmp/development.sqlite'
end
configure :test do
set :database, 'sqlite3::memory:'
end

require 'config/migrations'
Empty file added config/migrations.rb
Empty file.

0 comments on commit a45f06e

Please sign in to comment.