modified pins model and index and add file for paperclip rake