A fields API for automatic migrations in Active Record