Should be added to the migration?  
```
Katello::ContentView.all.each { |view| view.update_attribute(:next_version, (view.versions.maximum(:version) || 0) + 1) }
```