Source

RubyLearning / StatusWriter / lib / database_connection.rb

Full commit
1
2
3
4
5
6
7
require "rubygems"
require "active_record"

ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3",
  :database => "../db/task.db"
)