ActiveRecord relationship with name different from table

Hrm. Here's what I've got.

Migration:

    create_table "companies" do |t|       t.column "name", :string     end     create_table "users" do |t|       t.column "name", :string       t.column "company_id", :integer     end

Models:

class User < ActiveRecord::Base   belongs_to :company end

class Company < ActiveRecord::Base   has_many :employees, :class_name => "User" end

And, on the console:

u = User.create #=> ok c = Company.create #=> ok u.company = c #=> ok u.company #=> shows Company c c.employees #=> u.save #=> true c.reload #=> ok (need to refresh Company c's data from the db) c.employees #=> [ User u ]

This is Rails 1.1.6, Ruby 1.8.4, Sqlite3, Mac OS X.

Best,

-r