Skip to content

Instantly share code, notes, and snippets.

@phlipper
Created June 13, 2011 17:37
Show Gist options
  • Save phlipper/1023273 to your computer and use it in GitHub Desktop.
Save phlipper/1023273 to your computer and use it in GitHub Desktop.
convert saaspulse trials to paying accounts
Account.active.paying.select([:id, :company_name]).includes(:account_owner).each do |account|
Saaspulse.async_record(
:activity => "Purchase",
:module => "Account",
:org => account.company_name,
:user => account.account_owner.name
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment