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

Migration Error: NameError: uninitialized constant AddRegActionIDToKeywordBatches #512

Open
waynehoover opened this issue Jan 21, 2019 · 1 comment

Comments

@waynehoover
Copy link

waynehoover commented Jan 21, 2019

Ruby 2.5.3
Rails 4.2.10

When doing a migration I get this error:

NameError: uninitialized constant AddRegActionIDToKeywordBatches

Pretty standard shards.yml file:

  environments:
    - development

  development:
     rw_master:
        host: remote-db-host.com
        adapter: mysql2
        database: db_name
        encoding: utf8mb4
        collation: utf8mb4_bin
        pool: 5
        reconnect: true
        timeout: 5000
        username: username
        password: password
        local_infile: true

Only thing unique about my setup maybe is that our master DB (the one in database.yml) is a read-only replica and our shard is the RW db.

@waynehoover waynehoover changed the title NameError: uninitialized constant AddRegActionIDToKeywordBatches error on migrations Migration Error: NameError: uninitialized constant AddRegActionIDToKeywordBatches Jan 22, 2019
@thiagopradi
Copy link
Owner

HI @waynehoover,

Do you get this error when running the migration in the production environment? or do you see the error on your local environment as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants