ActiveRecord relationship with name different from table

Hrm. Here's what I've got.


    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


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 = c #=> ok #=> shows Company c c.employees #=> #=> 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.