moved generate.rb script

[ci skip]