Module: DataMapper::Migrations::SingletonMethods

### Home Classes Methods

### In Files

- lib/dm-migrations/auto_migration.rb

### Methods

- #auto_migrate!
- #auto_upgrade!
- #migrate!

### Files

- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- DataMapper
- DataMapper::Adapters
- DataMapper::Migration
- DataMapper::MigrationRunner
- DataMapper::Migrations
- DataMapper::Migrations::DataObjectsAdapter
- DataMapper::Migrations::DataObjectsAdapter::ClassMethods
- DataMapper::Migrations::DuplicateMigration
- DataMapper::Migrations::Model
- DataMapper::Migrations::MysqlAdapter
- DataMapper::Migrations::MysqlAdapter::ClassMethods
- DataMapper::Migrations::OracleAdapter
- DataMapper::Migrations::OracleAdapter::ClassMethods
- DataMapper::Migrations::PostgresAdapter
- DataMapper::Migrations::PostgresAdapter::ClassMethods
- DataMapper::Migrations::Repository
- DataMapper::Migrations::SingletonMethods
- DataMapper::Migrations::SqliteAdapter
- DataMapper::Migrations::SqliteAdapter::ClassMethods
- DataMapper::Migrations::SqlserverAdapter
- DataMapper::Migrations::SqlserverAdapter::ClassMethods
- DataMapper::Migrations::YamlAdapter
- SQL
- SQL::Column
- SQL::Mysql
- SQL::Mysql::Column
- SQL::Mysql::Table
- SQL::Postgres
- SQL::Postgres::Column
- SQL::Postgres::Table
- SQL::Sqlite
- SQL::Sqlite::Column
- SQL::Sqlite::Table
- SQL::Table
- SQL::TableCreator
- SQL::TableCreator::Column
- SQL::TableCreator::SqlExpr
- SQL::TableModifier
- Spec
- Spec::Example
- Spec::Example::MigrationExampleGroup
- Spec::Matchers
- Spec::Matchers::Migration
- Spec::Matchers::Migration::HaveColumnMatcher
- Spec::Matchers::Migration::HaveTableMatcher
- Spec::Matchers::Migration::NullableColumnMatcher
- Spec::Matchers::Migration::PrimaryKeyMatcher
- Object

No matching classes.

# DataMapper::Migrations::SingletonMethods

### Public Instance Methods

auto_migrate!(repository_name = nil) click to toggle source

drops and recreates the repository upwards to match model definitions

@param [Symbol] name repository to act on, :default is the default

@api public

    # File lib/dm-migrations/auto_migration.rb, line 21
    def auto_migrate!(repository_name = nil)
      repository_execute(:auto_migrate!, repository_name)
    end

auto_upgrade!(repository_name = nil) click to toggle source

@api public

    # File lib/dm-migrations/auto_migration.rb, line 26
    def auto_upgrade!(repository_name = nil)
      repository_execute(:auto_upgrade!, repository_name)
    end

migrate!(repository_name = nil) click to toggle source

destructively migrates the repository upwards to match model definitions

@param [Symbol] name repository to act on, :default is the default

@api public

    # File lib/dm-migrations/auto_migration.rb, line 12
    def migrate!(repository_name = nil)
      repository(repository_name).migrate!
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.