Skip to content

Instantly share code, notes, and snippets.

@andyhawthorne
Created October 17, 2012 20:15
Show Gist options
  • Select an option

  • Save andyhawthorne/3907870 to your computer and use it in GitHub Desktop.

Select an option

Save andyhawthorne/3907870 to your computer and use it in GitHub Desktop.
sinatra db
#database connection
DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite3://#{Dir.pwd}/development.db")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment