Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sistrall/scrambler_fu

Rails plugin to scramble the content of a table.
https://github.com/sistrall/scrambler_fu

Last synced: about 9 hours ago
JSON representation

Rails plugin to scramble the content of a table.

Awesome Lists containing this project

README

        

h1. ScramblerFu

Basically: scrambles contents of tables.

h2. Usage case

Say you have a dump of your real DB that you want to take home with you from work. In the same time you really don't want to have trouble with privacy, private data and similar.

After a scramble you'll have your DB full of random data. Problem solved!

h2. Usage

Define a model as usable with this plugin with @acts_as_scramblable@

bc. class User < ActiveRecord::Base
acts_as_scramblable :email => :letters,
:name => :order,
:code => [:numbers, :letters]
end

p. Than you can execute a task using rake:

bc. rake db:scramble

h2. Copyright and license

Copyright (c) 2009 Silvano Stralla, released under the MIT license