I'm attempting to use rails 6 new read-only database functionality with tiny_tds. The issue i am having is that it thinks no table name exist for the model I am trying to connect with for a remote SQLEXPRESS Server.
My setup is below
remote_file.rb / remote_files table
class RemoteFile < ApplicationRecord
self.abstract_class = true
connects_to database: {reading: :remote_files}
end
I haven't even asked, but does this gem actually work with Rails 6 new multiple database feature? I simply need to read the data from the mssql express server.
I'm attempting to use rails 6 new read-only database functionality with tiny_tds. The issue i am having is that it thinks no table name exist for the model I am trying to connect with for a remote SQLEXPRESS Server.
My setup is below remote_file.rb / remote_files table
database.yml
I'm able to connect to the server without issue, outside of rails. But, why does this error pop up when I use the code below?