Destructively automigrates the data-store to match the model. First migrates all models down and then up. REPEAT: THIS IS DESTRUCTIVE
@api public
# File lib/dm-migrations/auto_migration.rb, line 98 98: def auto_migrate! 99: DataMapper.auto_migrate!(name) 100: end
Safely migrates the data-store to match the model preserving data already in the data-store
@api public
# File lib/dm-migrations/auto_migration.rb, line 106 106: def auto_upgrade! 107: DataMapper.auto_upgrade!(name) 108: end
@api semipublic
# File lib/dm-migrations/auto_migration.rb, line 78 78: def create_model_storage(model) 79: adapter = self.adapter 80: if adapter.respond_to?(:create_model_storage) 81: adapter.create_model_storage(model) 82: end 83: end
@api semipublic
# File lib/dm-migrations/auto_migration.rb, line 86 86: def destroy_model_storage(model) 87: adapter = self.adapter 88: if adapter.respond_to?(:destroy_model_storage) 89: adapter.destroy_model_storage(model) 90: end 91: end
Determine whether a particular named storage exists in this repository
@param [String]
storage_name name of the storage to test for
@return [Boolean]
true if the data-store +storage_name+ exists
@api semipublic
# File lib/dm-migrations/auto_migration.rb, line 62 62: def storage_exists?(storage_name) 63: adapter = self.adapter 64: if adapter.respond_to?(:storage_exists?) 65: adapter.storage_exists?(storage_name) 66: end 67: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.