ActiveRecord should raise an error on invalid migration types.

@strzalek @wkm