Class: ActiveGroonga::MigrationEntry
- Inherits:
-
Object
- Object
- ActiveGroonga::MigrationEntry
- Defined in:
- lib/active_groonga/migrator.rb
Instance Attribute Summary (collapse)
-
- (Object) path
readonly
Returns the value of attribute path.
-
- (Object) version
readonly
Returns the value of attribute version.
Instance Method Summary (collapse)
-
- (MigrationEntry) initialize(migration, version, path)
constructor
A new instance of MigrationEntry.
- - (Object) migrate(direction, schema)
- - (Object) name
Constructor Details
- (MigrationEntry) initialize(migration, version, path)
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
- (Object) path (readonly)
Returns the value of attribute path
27 28 29 |
# File 'lib/active_groonga/migrator.rb', line 27 def path @path end |
- (Object) version (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
- (Object) migrate(direction, schema)
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 |
- (Object) name
34 35 36 |
# File 'lib/active_groonga/migrator.rb', line 34 def name @migration.migration_name end |