Module: DataMapper::Migrations::DataObjectsAdapter

Module | DataMapper::Migrations::DataObjectsAdapter
In: | lib/dm-core/migrations.rb

### Methods

create_model_storage destroy_model_storage field_exists? included storage_exists? upgrade_model_storage

### Included Modules

SQL

### Classes and Modules

Module DataMapper::Migrations::DataObjectsAdapter::ClassMethods

### Public Class methods

included(base)

TODO: document @api private

### Public Instance methods

create_model_storage(model)

TODO: document @api semipublic

destroy_model_storage(model)

TODO: document @api semipublic

field_exists?(storage_name, column_name)

Returns whether the field exists.

@param [String] storage_name

      a String defining the name of a storage, for example a table name.

@param [String] field

      a String defining the name of a field, for example a column name.

@return [Boolean]

      true if the field exists.

@api semipublic

storage_exists?(storage_name)

Returns whether the storage_name exists.

@param [String] storage_name

      a String defining the name of a storage, for example a table name.

@return [Boolean]

      true if the storage exists

@api semipublic

upgrade_model_storage(model)

TODO: document @api semipublic

[Validate]