Class: ActiveGroonga::MigrationEntry
- Inherits:
-
Object
- Object
- ActiveGroonga::MigrationEntry
- Defined in:
- lib/active_groonga/migrator.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(migration, version, path) ⇒ MigrationEntry
constructor
A new instance of MigrationEntry.
- #migrate(direction, schema) ⇒ Object
- #name ⇒ Object
Constructor Details
#initialize(migration, version, path) ⇒ MigrationEntry
Returns a new instance of MigrationEntry.
28 29 30 31 32 |
# File 'lib/active_groonga/migrator.rb', line 28 def initialize(migration, version, path) @migration = migration @version = version @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
27 28 29 |
# File 'lib/active_groonga/migrator.rb', line 27 def path @path end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
27 28 29 |
# File 'lib/active_groonga/migrator.rb', line 27 def version @version end |
Instance Method Details
#migrate(direction, schema) ⇒ Object
38 39 40 41 |
# File 'lib/active_groonga/migrator.rb', line 38 def migrate(direction, schema) migration = @migration.new(@version, @path, schema) migration.migrate(direction) end |
#name ⇒ Object
34 35 36 |
# File 'lib/active_groonga/migrator.rb', line 34 def name @migration.migration_name end |