Skip to content

sistrall/scrambler_fu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScramblerFu

Basically: scrambles contents of tables.

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!

Usage

Define a model as usable with this plugin with acts_as_scramblable

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

Than you can execute a task using rake:

rake db:scramble

Copyright and license

Copyright © 2009 Silvano Stralla, released under the MIT license

About

Rails plugin to scramble the content of a table.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages