Ensure that migrations are created with the `.rb` extension.

Since rails/rails#13612 the generator won't always add the `.rb`
extension when creating migrations with the `migration_template`
method.
Merge branch 'lm-migration-extension'