Ruby on Rails megamodel implemented