module DataMapper::Is::Predefined::MigrationMethods
@since 0.4.0
Public Instance Methods
auto_migrate!(repository_name=self.repository_name)
click to toggle source
Auto-migrates the model, then creates all predefined resources.
@param [Symbol] repository_name
The repository to perform the migrations within.
@return [true]
@api public
Calls superclass method
# File lib/dm-is-predefined/is/predefined.rb, line 38 def auto_migrate!(repository_name=self.repository_name) result = super(repository_name) predefine!(repository_name) return result end
auto_upgrade!(repository_name=self.repository_name)
click to toggle source
Auto-upgrades the model, then creates any missing predefined resources.
@param [Symbol] repository_name
The repository to perform the upgrade within.
@return [true]
@api public
Calls superclass method
# File lib/dm-is-predefined/is/predefined.rb, line 56 def auto_upgrade!(repository_name=self.repository_name) result = super(repository_name) predefine!(repository_name) return result end