You can use the set_table_name directive, e.g. from Agile Rails (pg.
191)
class Order < ActiveRecord::Base
set_table_name "ord_rev99_x" # Wrap a legacy table...
end
On 05/08/2006, at 8:45 PM, N/a N/a wrote:
> I know that rails is smart so if I create a model let''s say
> "Object", he
> will map it to the table pluralization like the table "objects".
But
> what happens when I have an obscure table named like ss_gd_objects?
> How
> can I tie it to a model?
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2415 bytes
Desc: not available
Url :
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060805/7d75ee69/smime.bin