Module: DataMapper::Model::Migration

Included in:
DataMapper::Model
Defined in:
lib/dm-core/model.rb

Overview

TODO: move to dm-more/dm-migrations

Instance Method Summary collapse

Instance Method Details

#storage_exists?(repository_name = default_repository_name) ⇒ Boolean

TODO: move to dm-more/dm-migrations

Returns:

  • (Boolean)


464
465
466
# File 'lib/dm-core/model.rb', line 464

def storage_exists?(repository_name = default_repository_name)
  repository(repository_name).storage_exists?(storage_name(repository_name))
end