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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aa6145211ae5b044a27c0707e5d1f525?d=identicon&s=25 Avinash (Guest)
on 2006-06-03 11: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,
--
avinash
C2b855d160333bf2725de7bf48c5f359?d=identicon&s=25 Vince Nibler (Guest)
on 2006-06-03 11: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.