1 $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
 2 require 'active_record'
 3 
 4 class Person < ActiveRecord::Base
 5   establish_connection :adapter => 'sqlite3', :database => 'foobar.db'
 6   connection.create_table table_name, :force => true do |t|
 7     t.string :name
 8   end
 9 end
10 
11 bob = Person.create!(:name => 'bob')
12 puts Person.all.inspect
13 bob.destroy
14 puts Person.all.inspect