Module: DataMapper::Repository::Migration
- Included in:
- DataMapper::Repository
- Defined in:
- lib/dm-core/repository.rb
Overview
TODO: move to dm-more/dm-migrations
Instance Method Summary collapse
-
#auto_migrate! ⇒ Object
TODO: move to dm-more/dm-migrations.
-
#auto_upgrade! ⇒ Object
TODO: move to dm-more/dm-migrations.
-
#map(*args) ⇒ Object
TODO: move to dm-more/dm-migrations.
-
#migrate! ⇒ Object
TODO: move to dm-more/dm-migrations.
-
#storage_exists?(storage_name) ⇒ True, False
TODO: move to dm-more/dm-migrations.
-
#type_map ⇒ Object
TODO: move to dm-more/dm-migrations.
Instance Method Details
#auto_migrate! ⇒ Object
TODO: move to dm-more/dm-migrations
130 131 132 |
# File 'lib/dm-core/repository.rb', line 130 def auto_migrate! AutoMigrator.auto_migrate(name) end |
#auto_upgrade! ⇒ Object
TODO: move to dm-more/dm-migrations
135 136 137 |
# File 'lib/dm-core/repository.rb', line 135 def auto_upgrade! AutoMigrator.auto_upgrade(name) end |
#map(*args) ⇒ Object
TODO: move to dm-more/dm-migrations
106 107 108 |
# File 'lib/dm-core/repository.rb', line 106 def map(*args) type_map.map(*args) end |
#migrate! ⇒ Object
TODO: move to dm-more/dm-migrations
125 126 127 |
# File 'lib/dm-core/repository.rb', line 125 def migrate! Migrator.migrate(name) end |
#storage_exists?(storage_name) ⇒ True, False
TODO: move to dm-more/dm-migrations
120 121 122 |
# File 'lib/dm-core/repository.rb', line 120 def storage_exists?(storage_name) adapter.storage_exists?(storage_name) end |