Support for multiple databases?

Our application connects to several databases. We do this in the fairly standard Rails way of having a base class for each non-primary database and calling establish_connection in the class body.

In model classes that belong to non-primary databases, RubyMine complains about all column references, including :foreign_key options on associations and method calls to attribute readers and writers.

Is there a way to tell RubyMine which database to look in for these models?

1 comment
Comment actions Permalink

Currently RubyMine looks in schema.rb and migrations to provide code insight for database-related features. Please file an issue at


Please sign in to leave a comment.