{"action":"created","issue":{"url":"https://api.github.com/repos/rails/activerecord-session_store/issues/10","labels_url":"https://api.github.com/repos/rails/activerecord-session_store/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/rails/activerecord-session_store/issues/10/comments","events_url":"https://api.github.com/repos/rails/activerecord-session_store/issues/10/events","html_url":"https://github.com/rails/activerecord-session_store/issues/10","id":14377315,"number":10,"title":"table_name_prefix duplicated by active record session migration","user":{"login":"jeradphelps","id":1202792,"avatar_url":"https://avatars.githubusercontent.com/u/1202792?v=3","gravatar_id":"","url":"https://api.github.com/users/jeradphelps","html_url":"https://github.com/jeradphelps","followers_url":"https://api.github.com/users/jeradphelps/followers","following_url":"https://api.github.com/users/jeradphelps/following{/other_user}","gists_url":"https://api.github.com/users/jeradphelps/gists{/gist_id}","starred_url":"https://api.github.com/users/jeradphelps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeradphelps/subscriptions","organizations_url":"https://api.github.com/users/jeradphelps/orgs","repos_url":"https://api.github.com/users/jeradphelps/repos","events_url":"https://api.github.com/users/jeradphelps/events{/privacy}","received_events_url":"https://api.github.com/users/jeradphelps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-05-15T20:24:15Z","updated_at":"2015-01-23T18:26:59Z","closed_at":null,"body":"When the config.active_record.table_name_prefix variable is set, the \r\n\r\nrails generate active_record:session_migration\r\n\r\ncreates a migration with the prefixed table name in the class.  When this migration is run, the prefix is applied again.  Upon changing the session_store to active record, and assuming a table_name_prefix = \"prefix_\", an error will be thrown: \r\n\r\nCould not find table 'prefix_sessions'\r\n\r\nA work around this is modifying the migration before it is run and removing the prefix.  However, it seems that the migration should be created without the prefix, as it will be applied when run.\r\n\r\nReproduced on a new rails 3.2.13 app."},"comment":{"url":"https://api.github.com/repos/rails/activerecord-session_store/issues/comments/71239533","html_url":"https://github.com/rails/activerecord-session_store/issues/10#issuecomment-71239533","issue_url":"https://api.github.com/repos/rails/activerecord-session_store/issues/10","id":71239533,"user":{"login":"sikachu","id":4912,"avatar_url":"https://avatars.githubusercontent.com/u/4912?v=3","gravatar_id":"","url":"https://api.github.com/users/sikachu","html_url":"https://github.com/sikachu","followers_url":"https://api.github.com/users/sikachu/followers","following_url":"https://api.github.com/users/sikachu/following{/other_user}","gists_url":"https://api.github.com/users/sikachu/gists{/gist_id}","starred_url":"https://api.github.com/users/sikachu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sikachu/subscriptions","organizations_url":"https://api.github.com/users/sikachu/orgs","repos_url":"https://api.github.com/users/sikachu/repos","events_url":"https://api.github.com/users/sikachu/events{/privacy}","received_events_url":"https://api.github.com/users/sikachu/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T18:26:59Z","updated_at":"2015-01-23T18:26:59Z","body":"I'm closing this due to inactivity. If you still have an issue, please let me know so I can reopen this."}}