I have a situation where I need to have delayed_job use a custom backend on a separate DB/table.
So essentially force it to use a separate schema vs. the one my app primarily uses.
Any ideas on how to do this? Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you could make some of your models connect to a different database and use different tables.
Specify the configurations for your new db in the
database.ymlAnd in the model one would establish the connection to this database using
establish_connection. You could also specify all the config directly in the model, keeping it in a config is just a better way. Hope this helps.