config()
method. By doing this, you instruct wheels to use that data source whenever it interacts with that model.photo
model is the main model being used in the following example, its data source (myFirstDatabase
) will be the one used in the query that findAll() ends up executing.