Class DataMapper::AutoMigrator
In: lib/dm-core/auto_migrations.rb
Parent: Object

Methods

Public Class methods

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

@param Symbol repository_name the repository to be migrated

Destructively automigrates the data-store down REPEAT: THIS IS DESTRUCTIVE

@param Symbol repository_name the repository to be migrated @calls DataMapper::Resource#auto_migrate_down! @api private

Automigrates the data-store up

@param Symbol repository_name the repository to be migrated @calls DataMapper::Resource#auto_migrate_up! @api private

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 @calls DataMapper::Resource#auto_upgrade!

[Validate]