Rewrite production.rb