Module: DataMapper::Migrations::Repository

Module | DataMapper::Migrations::Repository
In: | lib/dm-core/migrations.rb

### Methods

auto_migrate! auto_upgrade! create_model_storage destroy_model_storage storage_exists? upgrade_model_storage

### Public Instance methods

auto_migrate!()

Destructively automigrates the data-store to match the model. First migrates all models down and then up. REPEAT: THIS IS DESTRUCTIVE

@api public

auto_upgrade!()

Safely migrates the data-store to match the model preserving data already in the data-store

@api public

create_model_storage(model)

TODO: document @api semipublic

destroy_model_storage(model)

TODO: document @api semipublic

storage_exists?(storage_name)

Determine whether a particular named storage exists in this repository

@param [String]

      storage_name name of the storage to test for

@return [Boolean]

      true if the data-store +storage_name+ exists

@api semipublic

upgrade_model_storage(model)

TODO: document @api semipublic

[Validate]