Last active
August 29, 2015 14:24
-
-
Save jozr/b33233f3a567abe920da to your computer and use it in GitHub Desktop.
Create operations manager role and rerun BW processes in Panda production
This file contains 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
cd app | |
RAILS_ENV=production bundle exec rails c | |
# adding ops manager role with default users | |
operations_manager = Role.find_or_create(:name => "operations_manager") | |
california_first = Program.first(:identifier => "california_first") | |
users = User.where(:username => ["joe", "rhasan", "itatlonghari", "apintado"]) | |
users.each { |user| Membership.find_or_create(:user => user, :role => operations_manager, :program => california_first) } | |
# rerunning BW processes | |
Bumbleworks.timeout = 15 | |
ProcessRunner.rerun_pre_funding_request_approved_at! | |
Bumbleworks::Task.where(:nickname => "approve_funding_request").each(&:complete) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment