Skip to content

Instantly share code, notes, and snippets.

class SkinnyJeanDb < ActiveRecord::Base
self.abstract_class = true
end
SkinnyJeanDb.establish_connection(:adapter => 'sqlite3', :database => @sqlite_db_path)
class Pageview < SkinnyJeanDb; end
Pageview.count