Skip to content

Increase bootcamp code columns from TEXT to MEDIUMTEXT#8489

Merged
iHiD merged 1 commit into
mainfrom
fix/8483
Feb 12, 2026
Merged

Increase bootcamp code columns from TEXT to MEDIUMTEXT#8489
iHiD merged 1 commit into
mainfrom
fix/8483

Conversation

@iHiD
Copy link
Copy Markdown
Member

@iHiD iHiD commented Feb 9, 2026

Closes #8483

Summary

  • Upgrades the code column from MySQL TEXT (~16K chars with utf8mb4) to MEDIUMTEXT (16MB) on three tables: bootcamp_submissions, bootcamp_solutions, and bootcamp_drawings
  • Fixes ActiveRecord::ValueTooLong errors when users submit code that exceeds the TEXT limit
  • Follows the existing pattern from 20210909203814_increase_submission_test_run_results_size.rb

Test plan

  • Migration runs successfully
  • db/schema.rb shows size: :medium on all three code columns
  • Existing Bootcamp::Submission::Create tests pass (5 tests, 11 assertions)

🤖 Generated with Claude Code

The `code` column on bootcamp_submissions, bootcamp_solutions, and
bootcamp_drawings used MySQL TEXT (64KB with utf8mb4), which is too
small for some user submissions. Upgrade to MEDIUMTEXT (16MB) to
prevent ActiveRecord::ValueTooLong errors.

Closes #8483

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@iHiD iHiD merged commit a1d823f into main Feb 12, 2026
40 checks passed
@iHiD iHiD deleted the fix/8483 branch February 12, 2026 17:05
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.

ActiveRecord::ValueTooLong: Mysql2::Error: Data too long for column 'code' at row 1 (ActiveRecord::ValueTooLong)

1 participant