Skip to content

Fix migration class name for model names with acronyms (e.g. model:AIModel)#640

Merged
crmne merged 2 commits intocrmne:mainfrom
Saidbek:fix/629-migration-class-name-acronyms
Feb 27, 2026
Merged

Fix migration class name for model names with acronyms (e.g. model:AIModel)#640
crmne merged 2 commits intocrmne:mainfrom
Saidbek:fix/629-migration-class-name-acronyms

Conversation

@Saidbek
Copy link
Contributor

@Saidbek Saidbek commented Feb 27, 2026

Summary

Fixes uninitialized constant CreateAiModels when running the install generator with model names that use acronyms (e.g. model:AIModel). The migration class is now derived from the table name (and thus the filename), matching Rails’ behavior, and the change is applied to all four create_* migration templates.

#629

@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.13%. Comparing base (f9b1370) to head (d00ae56).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #640   +/-   ##
=======================================
  Coverage   80.13%   80.13%           
=======================================
  Files         113      113           
  Lines        5095     5095           
  Branches     1307     1307           
=======================================
  Hits         4083     4083           
  Misses       1012     1012           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@crmne crmne merged commit c72846b into crmne:main Feb 27, 2026
21 checks passed
@crmne crmne linked an issue Mar 1, 2026 that may be closed by this pull request
3 tasks
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.

[BUG] uninitialized constant CreateAiModels

2 participants