$: << File.dirname(__FILE__)
require 'connect'

# START:define
require 'rubygems'
require_gem 'activerecord'
# END:define
#START:dump
require 'pp'

#END:dump
# START:define

# Connection code omitted...

class Order < ActiveRecord::Base
end
# END:define

# START:dump
pp Order.columns.map { |col| col.name }
pp Order.columns_hash['shipped_at']
# END:dump

# START:time
order = Order.new
order.shipped_at = "2005-03-04 12:34"
pp order.shipped_at.class
pp order.shipped_at
# END:time
