mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
update_all zero out user levels and experience
This commit is contained in:
parent
3be4cd2a9a
commit
6a7fa90cc4
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue