Module: DataMapper::Model::Migration

Included in:
DataMapper::Model
Defined in:
lib/gems/dm-core-0.9.9/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:



507
508
509
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/model.rb', line 507

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