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.
Af3cecc8af253b5acd3c09c5b67c0074?d=identicon&s=25 Valentino Lun (on9west)
on 2009-01-30 04: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
Af3cecc8af253b5acd3c09c5b67c0074?d=identicon&s=25 Valentino Lun (on9west)
on 2009-01-30 05: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.
24a981b368634e4f68241a4c042f499e?d=identicon&s=25 Daniel Shimoyama (Guest)
on 2009-01-31 12: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 Lun <rails-mailing-list@andreas-s.net>
This topic is locked and can not be replied to.