method

validate_file_name!

rails latest stable - Class: ActiveRecord::Generators::MigrationGenerator
validate_file_name!()
private

A migration file name can only contain underscores (_), lowercase characters, and numbers 0-9. Any other file name will raise an IllegalMigrationNameError.