Skip to content

fix: generator autodiscovery and schema loading for Rails 8+#18

Merged
bart-oz merged 3 commits intomainfrom
fix/generator-autodiscovery-and-schema-loading
Feb 11, 2026
Merged

fix: generator autodiscovery and schema loading for Rails 8+#18
bart-oz merged 3 commits intomainfrom
fix/generator-autodiscovery-and-schema-loading

Conversation

@bart-oz
Copy link
Owner

@bart-oz bart-oz commented Feb 11, 2026

  • Move install generator from lib/sqlite_crypto/generators/ to lib/generators/sqlite_crypto/install/ to follow Rails autodiscovery convention
  • Move SchemaDefinitions includes from require-time into a railtie initializer where ActiveRecord is guaranteed to be loaded
  • Include into ActiveRecord::Schema::Definition for Rails 8+ compatibility
  • Add schema round-trip integration test to verify uuid/ulid helpers work end-to-end

Thanks @yostinso for this bug discovery 🙌

- Move install generator from lib/sqlite_crypto/generators/ to lib/generators/sqlite_crypto/install/ to follow Rails autodiscovery convention
- Move SchemaDefinitions includes from require-time into a railtie
initializer where ActiveRecord is guaranteed to be loaded
- Include into ActiveRecord::Schema::Definition for Rails 8+ compatibility
- Add schema round-trip integration test to verify uuid/ulid helpers work end-to-end
@bart-oz bart-oz self-assigned this Feb 11, 2026
@bart-oz bart-oz added the bug Something isn't working label Feb 11, 2026
@bart-oz bart-oz merged commit 4b22cb7 into main Feb 11, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant