Skip to content

Conversation

@fightingtheboss
Copy link

@fightingtheboss fightingtheboss commented Mar 7, 2024

The LolDba::IndexFinder was iterating over all subclasses of ActiveRecord::Base, including abstract classes that don't have backing tables in the DB (namely ActionText and ActionMailbox).

This change simply omits classes without backing tables from the search for missing indices.

Resolves #146

@fightingtheboss fightingtheboss changed the title Don't search for indices on abstract classes Don't search for indices on classes without tables Mar 7, 2024
Update the `LolDba::IndexFinding.model_classes` method to return only classes that have a table in the database.
@thiagovsk
Copy link

Nice! I had some problems with action text too 👍

@xxx
Copy link

xxx commented Oct 23, 2024

@plentz could this be approved and merged please? #146 seems to affect a lot of people (not only those using MySQL).

@sumitngupta
Copy link

Any updates on if this can be merged?

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

Successfully merging this pull request may close these issues.

Mysql2::Error: Table 'myapp_development.action_text_rich_texts' doesn't exist

4 participants