Table Aliasing and Legacy Naming

So you have a User model in your Rails app... by default Rails will look for a “users” table.

class User < ActiveRecord::Base
end

Unfortunately (in our example), that user information is stored in a legacy database with the table name USER_DATA_TBL05 (brrr, the horror). You can't change the name of the table to make Rails happy because your legacy “enterprise” apps would break.