```ruby
class AddStatusToUsers < ActiveRecord::Migration
  def change
    add_column :users, :status, :integer
    User.update_all(:status => User.statuses[:active])
  end
end
```

Fix old migration by hard-coding value. It doesn't won't since it references a method that doesn't exist any more.
user
```ruby
class AddStatusToUsers < ActiveRecord::Migration
  
  USER_STATUS_ACTIVE = 1
  
  def change
    add_column :users, :status, :integer
    User.update_all(status: USER_STATUS_ACTIVE)
  end
end
```
assistant