Exception: Hanami::CLI::InvalidMigrationNameError

Inherits:
Error
  • Object
show all
Defined in:
lib/hanami/cli/errors.rb

Overview

Since:

  • 2.2.0

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ InvalidMigrationNameError

Returns a new instance of InvalidMigrationNameError.

Since:

  • 2.2.0



114
115
116
117
118
119
120
# File 'lib/hanami/cli/errors.rb', line 114

def initialize(name)
  super(<<~TEXT)
    Invalid migration name: #{name}

    Name must contain only letters, numbers, and underscores.
  TEXT
end