New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Rikki bot from affecting behavior study #3464

merged 1 commit into from Apr 17, 2017
Jump to file or symbol
Failed to load files and symbols.
+17 −0
Diff settings


Just for now

Prevent Rikki bot from affecting behavior study

  • Loading branch information...
nilbus committed Apr 15, 2017
commit f40288490517136966ab47d478c17494d4f99c7a
@@ -0,0 +1,17 @@
require 'exercism/user'
class OptOutTheBot < ActiveRecord::Migration
class User < ActiveRecord::Base; end
def up
User.where(username: 'rikki-').each do |rikki|
rikki.update_attribute :motivation_experiment_opt_out, true
def down
User.where(username: 'rikki-').each do |rikki|
rikki.update_attribute :motivation_experiment_opt_out, false
ProTip! Use n and p to navigate between commits in a pull request.