Module: DataMapper::Migrations::PostgresAdapter

### Home Classes Methods

### In Files

- lib/dm-migrations/adapters/dm-postgres-adapter.rb

### Namespace

- MODULE DataMapper::Migrations::PostgresAdapter::ClassMethods

### Methods

- ::included
- #create_model_storage
- #destroy_model_storage
- #upgrade_model_storage

### Included Modules

- DataMapper::Migrations::DataObjectsAdapter

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

### Public Class Methods

included(base) click to toggle source

@api private

    # File lib/dm-migrations/adapters/dm-postgres-adapter.rb, line 11
    def self.included(base)
      base.extend DataObjectsAdapter::ClassMethods
      base.extend ClassMethods
    end

### Public Instance Methods

create_model_storage(model) click to toggle source

@api semipublic

    # File lib/dm-migrations/adapters/dm-postgres-adapter.rb, line 22
    def create_model_storage(model)
      without_notices { super }
    end

destroy_model_storage(model) click to toggle source

@api semipublic

    # File lib/dm-migrations/adapters/dm-postgres-adapter.rb, line 27
    def destroy_model_storage(model)
      if supports_drop_table_if_exists?
        without_notices { super }
      else
        super
      end
    end

upgrade_model_storage(model) click to toggle source

@api semipublic

    # File lib/dm-migrations/adapters/dm-postgres-adapter.rb, line 17
    def upgrade_model_storage(model)
      without_notices { super }
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.