Description
Polo is an open source Ruby library from IFTTT that builds sample snapshots of a database so developers can work with real-world data in development or any other environment. You give it an ActiveRecord seed object, and it follows every association you have whitelisted, generating SQL INSERT statements as it goes. Those statements can be saved to a .sql file and imported wherever you need them. For refreshing a local copy from production data, an on_duplicate option tells Polo how to handle rows whose keys already exist: ignore keeps your local data, while override replaces it with the new data; without the option, the import stops at the first collision. This option currently works only with MySQL. An obfuscate option can scramble sensitive fields such as emails or logins, though the project warns that this is not a security feature.…
Highlights
- Snapshots of real data from an ActiveRecord seed
- Follows whitelisted associations
- Generates SQL INSERT statements
- on_duplicate ignore or override (MySQL)
- Obfuscate sensitive fields
Ratings & Reviews
No ratings yet
Be the first to rate Polo.
People also visit
Polo FAQ
What does Polo do?
It walks your database from a seed ActiveRecord object through whitelisted associations and generates SQL INSERTs, giving you a realistic data sample.
How do I use the output?
Save the generated SQL INSERTs to a .sql file and import them into your target environment.
What happens if a record already exists locally?
Set on_duplicate to :ignore to keep old data or :override to use the new data. Without it, Polo stops importing on a collision.
Which databases support on_duplicate?
Currently only MySQL.
Can I hide personal data?
The obfuscate option scrambles fields such as emails or logins, but the project warns it is not a security feature.
What are the best Polo alternatives?
Popular alternatives to Polo include Replibyte, a7 SqlTools and Databasus. See all Polo alternatives






