changed pin.rb file to include :bucket in model