added ruby struct
added migration