Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with models with `.` in table name #15

Open
westonganger opened this issue Jan 29, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@westonganger
Copy link
Contributor

commented Jan 29, 2019

In some of my Rails apps I connect to multiple databases. In that way I define my models like so:

class Project < OtherDatabaseModels
  self.table_name = "other_db.projects"
end

It is outputting the following error in the file after running the annotations

# Could not dump table "other_db.projects" because of following NoMethodError
#   undefined method `[]' for nil:NilClass

The error is for having the . in the table name. Its not related not to using the second database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.