added pg and railsfactor 12 for Horoku