modified schema for rails 4 and structure