Skip to content

About

Rails plugin to scramble the content of a table.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

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

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages