We have moved a part of our Rails app into a "service", i.e. a Ruby
script that is demonized and communicates with the main app through a
This service needs to know about the models in the Rails app, but it
does not need a database connection. Indeed, we are making sure that
in this service, no call to the DB will be made.
How would you do that? At the moment, we are simply requiring the
models files in the service. But since they inherit from
ActiveRecord::base, it won't work if there is no connection to a DB