Method: DataMapper::Migration#database

Defined in:
lib/dm-migrations/migration.rb

#databaseSymbol?

Deprecated.

Use #repository instead.

The repository the migration will operate on.

Returns:

  • (Symbol, nil)

    The name of the DataMapper repository the migration will run against.

Since:

  • 1.0.1.



65
66
67
68
# File 'lib/dm-migrations/migration.rb', line 65

def database
  warn "Using the DataMapper::Migration#database method is deprecated, use #repository instead"
  @repository
end