Created
June 10, 2013 16:26
-
-
Save adam-phillipps/5750104 to your computer and use it in GitHub Desktop.
script to register users
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
Dir.chdir("~/code/scripts") | |
2 puts script/runner | |
3 puts register.rb | |
4 end | |
5 | |
6 | |
7 def register_users() | |
8 (81..300).each.do |i| | |
9 User.find_by_id(i).update_attributes({workflow_state => 'active'}) | |
10 puts "Progress at: #{i}" | |
11 end | |
12 end | |
13 | |
14 #def register_users() | |
15 # (81..300).each {|i| User.find_by_id(i).update_attributes({:workflow_state => 'active'})} | |
16 #end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(81..300).each { |i| User.find_by_id(i).update_attribute(:workflow_state, 'active') }