Skip to content

v2.0.2 - Fix generator auto-discovery and schema loading

Choose a tag to compare

@bart-oz bart-oz released this 11 Feb 11:58
· 5 commits to main since this release
4b22cb7

馃悰 Fixed

  • Generator autodiscovery: Moved install generator to lib/generators/sqlite_crypto/install/ to follow Rails convention. Previously rails generate sqlite_crypto:install could not find the generator (bug since v2.0.0)
  • Schema loading: Moved uuid/ulid helper includes from require-time into railtie initializer. The previous if defined? guard ran before ActiveRecord was loaded, causing NameError: undefined method 'uuid' when loading schema.rb (bug since v2.0.1)
  • Rails 8+ compatibility: Include schema helpers into ActiveRecord::Schema::Definition where schema.rb blocks are evaluated in Rails 8+

馃摝 Upgrade

bundle update sqlite_crypto

Added

  • Schema round-trip integration test (dump, reload, verify)

Acknowledgements