views:

108

answers:

1

Hello,

I'm using a tool(UltraSms) that required three tables named (smsin, smsout & smsparts)

I need these tables to be used in the same Rails application that has other tables. With ActiveRecrod I know that table names has to be plural of the Active record class name by convention. Is there a way to map those to an ActiveRecrod class easily or should I find manual way to do ORM for it?

Thanks,

Tam

+2  A: 

You can do this:

class MyClass < ActiveRecord::Base
  set_table_name "smsin"
end
Ahsan Ali