use awk instead of sed, gsub instead of regex sub
renaming tables
renaming columns
write migration file
renaming indexes
rename in sql function
only use up and down methods in migration
substitute all occurences in translate
fix index migration

After renaming the table, the index is already
attached to the new table name. Hence, we have
pass the new table name to the renaming method.
rename in primary and foreign keys
activate renaming script
fix renaming script execution order
rename factory files
rename module to RenameRefactor
move script to script/ dir run it from rails root
many code style improvements