Class: Torque::PostgreSQL::IllegalCommandTypeError

Inherits:
ActiveRecord::MigrationError
  • Object
show all
Defined in:
lib/torque/postgresql/versioned_commands/migration_context.rb

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ IllegalCommandTypeError

Returns a new instance of IllegalCommandTypeError.



6
7
8
9
10
11
12
13
# File 'lib/torque/postgresql/versioned_commands/migration_context.rb', line 6

def initialize(file)
  super(<<~MSG.squish)
    Illegal name for command file '#{file}'. Commands are more strict and require
    the version, one of create, update, or remove, type of object, name
    and operation version to be present in the filename.
    (e.g. 20250101010101_create_function_my_function_v1.sql)
  MSG
end