Utilities for complex ActiveRecord migrations