I did manage to get my app working by loading ActiveRecord explicitly in boot.rb, like this:

require 'rubygems'
require_gem 'activerecord' # this is my new line
require 'initializer'


I have no idea why most people don't have this problem...