Forum: Ruby on Rails rename sessions table in rails

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.
Valentino L. (Guest)
on 2009-01-30 05:52
Dear all

I want to rename my sessions table to xxx_sessions in database. What
should I do in my rails project so that it will point to the new table
name (i.e. xxx_sessions)

Thank you very much

Valentino
Valentino L. (Guest)
on 2009-01-30 06:15
Dear all

Problem solve by including the following entries to
config/environments/*.rb

CGI::Session::ActiveRecordStore::Session.set_table_name "xxx_sessions"

Thank you.
Daniel S. (Guest)
on 2009-01-31 13:50
(Received via mailing list)
Mate,

well, can we add anothers attributes in the sessions table and make
updates
as the application requests ?


2009/1/30 Valentino L. <removed_email_address@domain.invalid>
This topic is locked and can not be replied to.