before rails upgrade