Now that sqlite3-ruby natively supports loading extensions via Database.new
, we can easily load extensions in Rails apps without having to monkey-patch anything.
This is all you need:
gem "sqlite_extensions-uuid"
development:
adapter: sqlite3
extensions:
- <%= SqliteExtensions::UUID.to_path %>
Now that this is finally supported, we've removed the old railtie-based approach.
We've also made this gem depend on sqlite3-ruby >= 2.4.0
in order to ensure that support is available.
And with that, we're v1.0.0
!