view.rb change after heroku db migrate and pin removal :
Pin.destroy_all(user_id: nil)