Class | DataMapper::Migration |
In: |
lib/dm-migrations/migration.rb
|
Parent: | Object |
name | [R] | The name of the migration |
position | [R] | The position or version the migration belongs to |
repository | [R] | The repository the migration operates on |
Creates a new migration.
@param [Symbol, String, Integer] position
The position or version the migration belongs to.
@param [Symbol] name
The name of the migration.
@param [Hash] options
Additional options for the migration.
@option options [Boolean] :verbose (true)
Enables or disables verbose output.
@option options [Symbol] :repository (:default)
The DataMapper repository the migration will operate on.
Orders migrations by position, so we know what order to run them in. First order by position, then by name, so at least the order is predictable.
The adapter the migration will use.
@return [DataMapper::Adapter]
The adapter the migration will operate on.
@since 1.0.1
The repository the migration will operate on.
@return [Symbol, nil]
The name of the DataMapper repository the migration will run against.
@deprecated Use {repository} instead.
@since 1.0.1.
Inserts or removes a row into the `migration_info` table, so we can mark this migration as run, or un-done