lib/generators/forest/scaffold/scaffold_generator.rb
# A migration file name can only contain underscores (_), lowercase characters,
# and numbers 0-9. Any other file name will raise an IllegalMigrationNameError.
A migration file name can only contain underscores (_), lowercase characters,
and numbers 0-9. Any other file name will raise an IllegalMigrationNameError.
A migration file name can only contain underscores ( _ ) lowercase characters and numbers 0 - 9 . Any other file name will raise an IllegalMigrationNameError .
def validate_file_name!
    unless /^[_a-z0-9]+$/.match?(file_name)
      raise IllegalMigrationNameError.new(file_name)
    end
  end
def validate_file_name! unless / ^[_a-z0-9]+$ / . match? ( file_name ) raise IllegalMigrationNameError . new ( file_name ) end end
A migration file name can only contain underscores (_), lowercase characters,
and numbers 0-9.
A migration file name can only contain underscores ( _ ) lowercase characters and numbers 0 - 9 .