added megamodel for rails