Module: DataMapper::Migrations::Model

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

### Methods

auto_migrate! auto_migrate_down! auto_migrate_up! auto_upgrade! included storage_exists?

### Public Class methods

included(mod)

TODO: document @api private

### Public Instance methods

auto_migrate!(repository_name = self.repository_name)

Destructively automigrates the data-store to match the model REPEAT: THIS IS DESTRUCTIVE

@param Symbol repository_name the repository to be migrated

@api public

auto_migrate_down!(repository_name = self.repository_name)

Destructively migrates the data-store down, which basically deletes all the models. REPEAT: THIS IS DESTRUCTIVE

@param Symbol repository_name the repository to be migrated

@api private

auto_migrate_up!(repository_name = self.repository_name)

Auto migrates the data-store to match the model

@param Symbol repository_name the repository to be migrated

@api private

auto_upgrade!(repository_name = self.repository_name)

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

@param Symbol repository_name the repository to be migrated

@api public

storage_exists?(repository_name = default_repository_name)

TODO: document @api semipublic

[Validate]