Exception: ActiveGroonga::DuplicateMigrationVersionError

Inherits:
Error
  • Object
show all
Defined in:
lib/active_groonga/migrator.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version, path) ⇒ DuplicateMigrationVersionError

Returns a new instance of DuplicateMigrationVersionError.



19
20
21
22
23
# File 'lib/active_groonga/migrator.rb', line 19

def initialize(version, path)
  @version = version
  @path = path
  super("duplicated migration version exists: #{version}: <#{@path}>")
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



18
19
20
# File 'lib/active_groonga/migrator.rb', line 18

def path
  @path
end

#versionObject (readonly)

Returns the value of attribute version.



18
19
20
# File 'lib/active_groonga/migrator.rb', line 18

def version
  @version
end