Forum: Ruby on Rails legacy support: removing underscore from table name.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Avinash (Guest)
on 2006-06-03 13:13
I am using ms sql server and want to configure RoR such that it does not
convert the given table name (example: rubyonrails) to ruby_on_rails.

I set  @@pluralize_table_names = false, so that it does not pluralize
the table names but cannot find the config setting which will force it
not to put underscore between words in a table name.

thanks in advance,
Vince Nibler (Guest)
on 2006-06-03 13:57
(Received via mailing list)
Try this in your class definition:
  set_table_name "rubyonrails"

I think that will make the table name explicit, and keep rails from
converting a class named RubyOnRails into a table named ruby_on_rails.
This topic is locked and can not be replied to.