
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
=LegacyMigrations
This plugin implements a simple, expressive syntax for migrating data from one data structure to another. Here's a simple example:
require 'legacy_migrations'
transfer_from Person, :to => Animal do from :name, :to => :pet_name end
This transfers data from the people table to the animals table, mapping the people's name column to animals' pet_name column.
But that's just the beginning. This plugin also:
== Example
In some file in your rails app (perhaps db/seeds.rb?)
require 'legacy_migrations'
transfer_from Person, :to => Animal do from :name, :to => :pet_name from :sex, :to => :gender do |sex| sex == 'm' ? 'male' : 'female' end end
OR, copy all columns with the same name
transfer_from Person, :to => Animal do match_same_name_attributes end
Here's a slightly more thorough blog post about it:
Copyright (c) 2010 Bernie Telles, released under the MIT license
FAQs
Unknown package
We found that legacy_migrations 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
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.