Chateau php migrated and upgraded to rails application