
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
A simple gem to make it easy to use UUIDs as the id for Rails models.
Your table creation migration should look something like this:
create_table :things, :id => false do |t|
t.binary :id, :primary_key => true, :null => false
t.timestamps
end
add_index :things, :id, :unique => true
binary
type is your best bet as it will be put into schema.db
correctly.
Then inside of your model just do this:
include UuidIds::ModelHelper
If you need to you can set the id outside of the model. If there is a collision (and you have a unique index) then an exception will be raised and it's up to your app to handle that. If you don't have a unique index and there is a collision you'll have two objects with the same id.
This project rocks and uses MIT-LICENSE.
FAQs
Unknown package
We found that uuid_ids demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.