Maurice Fäh
2007-Sep-27 13:10 UTC
How to change the default naming schema for indeces in the ''
Hi all I''m using rails on a legacy environment with Oracle 10g. Now I want to move to the database based session store. BUT I''m running into a problem: a) I''m using rails table_name prefixes: config.active_record.table_name_prefix = "c2003_tv_" b) It seems that during the migration rails automatically wants to create a index on the session_id column, which it can''t: == Session: migrating ========================================================-- create_table(:session) -> 0.0269s -- add_index(:session, :session_id) rake aborted! OCIError: ORA-00972: identifier is too long: CREATE INDEX index_c2003_tv_session_on_session_id ON c2003_tv_session (session_id) How can I change the default naming schema for indeces on the ''session'' table? Or any other suggestion? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---