Module: DataMapper::Adapters

### Home Classes Methods

### In Files

- lib/dm-migrations/auto_migration.rb

### Methods

- ::include_migration_api
- ::migration_module
- #const_added

### 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::Adapters

### Public Class Methods

include_migration_api(const_name) click to toggle source

    # File lib/dm-migrations/auto_migration.rb, line 200
    def self.include_migration_api(const_name)
      require auto_migration_extensions(const_name)
      if Migrations.const_defined?(const_name)
        adapter = const_get(const_name)
        adapter.send(:include, migration_module(const_name))
      end
    rescue LoadError
      # Silently ignore the fact that no adapter extensions could be required
      # This means that the adapter in use doesn't support migrations
    end

migration_module(const_name) click to toggle source

    # File lib/dm-migrations/auto_migration.rb, line 211
    def self.migration_module(const_name)
      Migrations.const_get(const_name)
    end

### Public Instance Methods

const_added(const_name) click to toggle source

@api private

    # File lib/dm-migrations/auto_migration.rb, line 229
    def const_added(const_name)
      include_migration_api(const_name)
      super
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.