Module: Spec::Matchers::Migration

### Home Classes Methods

### In Files

- lib/spec/matchers/migration_matchers.rb

### Namespace

- CLASS Spec::Matchers::Migration::HaveColumnMatcher
- CLASS Spec::Matchers::Migration::HaveTableMatcher
- CLASS Spec::Matchers::Migration::NullableColumnMatcher
- CLASS Spec::Matchers::Migration::PrimaryKeyMatcher

### Methods

- #be_primary_key
- #have_column
- #have_table
- #permit_null

### 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.

# Spec::Matchers::Migration

### Public Instance Methods

be_primary_key() click to toggle source

    # File lib/spec/matchers/migration_matchers.rb, line 17
    def be_primary_key
      PrimaryKeyMatcher.new
    end

have_column(column_name) click to toggle source

    # File lib/spec/matchers/migration_matchers.rb, line 9
    def have_column(column_name)
      HaveColumnMatcher.new(column_name)
    end

have_table(table_name) click to toggle source

    # File lib/spec/matchers/migration_matchers.rb, line 5
    def have_table(table_name)
      HaveTableMatcher.new(table_name)
    end

permit_null() click to toggle source

    # File lib/spec/matchers/migration_matchers.rb, line 13
    def permit_null
      NullableColumnMatcher.new
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.