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
-
#alter_model_storage(repository, *args) ⇒ Object
TODO: move to dm-more/dm-migrations.
-
#alter_property_storage(repository, *args) ⇒ Object
TODO: move to dm-more/dm-migrations.
-
#create_model_storage(repository, model) ⇒ Object
TODO: move to dm-more/dm-migrations.
-
#create_property_storage(repository, property) ⇒ Object
TODO: move to dm-more/dm-migrations.
-
#destroy_model_storage(repository, model) ⇒ Object
TODO: move to dm-more/dm-migrations.
-
#destroy_property_storage(repository, property) ⇒ Object
TODO: move to dm-more/dm-migrations.
-
#field_exists?(storage_name, field_name) ⇒ Boolean
Returns whether the field exists.
-
#storage_exists?(storage_name) ⇒ Boolean
Returns whether the storage_name exists.
-
#upgrade_model_storage(repository, model) ⇒ Object
TODO: move to dm-more/dm-migrations.
Instance Method Details
#alter_model_storage(repository, *args) ⇒ Object
TODO: move to dm-more/dm-migrations
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
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
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
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
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
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)
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)
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
81 82 83 |
# File 'lib/dm-core/adapters/abstract_adapter.rb', line 81 def upgrade_model_storage(repository, model) raise NotImplementedError end |