update_all zero out user levels and experience
This commit is contained in:
@@ -2,6 +2,8 @@ class AddLvlExperienceToUser < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :users, :exp, :float, :default=>0.0
|
||||
add_column :users, :lvl, :integer, :default=>1
|
||||
User.update_all ["lvl = ?", 1]
|
||||
User.update_all ["exp = ?", 0.0]
|
||||
end
|
||||
|
||||
def down
|
||||
|
||||
Reference in New Issue
Block a user