Skip to content

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

Description

@westonganger

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions