Created
December 7, 2016 15:46
-
-
Save kwbock/d862646f1e62041b0f2a2fb9e02db0ca to your computer and use it in GitHub Desktop.
Backfill intercom account stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Manually backfill teams in Intercom if needed | |
| Team.find_each do |t| | |
| account = t.accounts.first | |
| next unless account | |
| BackgroundIntercomAccountCreator.perform_async(account.id) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment