Module: DataMapper::Adapters::AbstractAdapter::Migration

Included in:
DataMapper::Adapters::AbstractAdapter
Defined in:
lib/dm-core/adapters/abstract_adapter.rb

Overview

TODO: move to dm-more/dm-migrations

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#alter_model_storage(repository, *args) ⇒ Object

TODO: move to dm-more/dm-migrations

Raises:

  • (NotImplementedError)


96
97
98
# File 'lib/dm-core/adapters/abstract_adapter.rb', line 96

def alter_model_storage(repository, *args)
  raise NotImplementedError
end

#alter_property_storage(repository, *args) ⇒ Object

TODO: move to dm-more/dm-migrations

Raises:

  • (NotImplementedError)


111
112
113
# File 'lib/dm-core/adapters/abstract_adapter.rb', line 111

def alter_property_storage(repository, *args)
  raise NotImplementedError
end

#create_model_storage(repository, model) ⇒ Object

TODO: move to dm-more/dm-migrations

Raises:

  • (NotImplementedError)


86
87
88
# File 'lib/dm-core/adapters/abstract_adapter.rb', line 86

def create_model_storage(repository, model)
  raise NotImplementedError
end

#create_property_storage(repository, property) ⇒ Object

TODO: move to dm-more/dm-migrations

Raises:

  • (NotImplementedError)


101
102
103
# File 'lib/dm-core/adapters/abstract_adapter.rb', line 101

def create_property_storage(repository, property)
  raise NotImplementedError
end

#destroy_model_storage(repository, model) ⇒ Object

TODO: move to dm-more/dm-migrations

Raises:

  • (NotImplementedError)


91
92
93
# File 'lib/dm-core/adapters/abstract_adapter.rb', line 91

def destroy_model_storage(repository, model)
  raise NotImplementedError
end

#destroy_property_storage(repository, property) ⇒ Object

TODO: move to dm-more/dm-migrations

Raises:

  • (NotImplementedError)


106
107
108
# File 'lib/dm-core/adapters/abstract_adapter.rb', line 106

def destroy_property_storage(repository, property)
  raise NotImplementedError
end

#field_exists?(storage_name, field_name) ⇒ Boolean

Returns whether the field exists.

TODO: move to dm-more/dm-migrations (if possible)

Parameters:

  • storage_name (String)

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

  • field_name (String)

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

Returns:

  • (Boolean)

    true if the field exists.

Raises:

  • (NotImplementedError)


76
77
78
# File 'lib/dm-core/adapters/abstract_adapter.rb', line 76

def field_exists?(storage_name, field_name)
  raise NotImplementedError
end

#storage_exists?(storage_name) ⇒ Boolean

Returns whether the storage_name exists.

TODO: move to dm-more/dm-migrations (if possible)

Parameters:

  • storage_name (String)

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

Returns:

  • (Boolean)

    true if the storage exists

Raises:

  • (NotImplementedError)


63
64
65
# File 'lib/dm-core/adapters/abstract_adapter.rb', line 63

def storage_exists?(storage_name)
  raise NotImplementedError
end

#upgrade_model_storage(repository, model) ⇒ Object

TODO: move to dm-more/dm-migrations

Raises:

  • (NotImplementedError)


81
82
83
# File 'lib/dm-core/adapters/abstract_adapter.rb', line 81

def upgrade_model_storage(repository, model)
  raise NotImplementedError
end