```ruby
namespace :after_party do
  desc 'Deployment task: confirm_existing_users'
  task confirm_existing_users: :environment do
    puts "Running deploy task 'confirm_existing_users'"

    User.update confirmed_at: Time.zone.now

    # Update task as completed.  If you remove the line below, the task will
    # run with every deploy (or every time you call after_party:run).
    AfterParty::TaskRecord.create version: '20171125051622'
  end
end
```

Use Rails logger instead of puts
user
```ruby
namespace :after_party do
  desc 'Deployment task: confirm_existing_users'
  task confirm_existing_users: :environment do
    Rails.logger.info "Running deploy task 'confirm_existing_users'"

    User.update confirmed_at: Time.zone.now

    # Update task as completed.  If you remove the line below, the task will
    # run with every deploy (or every time you call after_party:run).
    AfterParty::TaskRecord.create version: '20171125051622'
  end
end
```
assistant