DataMapper::Migrations::SingletonMethods

Public Instance Methods

auto_migrate!(repository_name = nil) click to toggle source

drops and recreates the repository upwards to match model definitions

@param [Symbol] name repository to act on, :default is the default

@api public

# File lib/dm-migrations/auto_migration.rb, line 21
def auto_migrate!(repository_name = nil)
  repository_execute(:auto_migrate!, repository_name)
end
auto_upgrade!(repository_name = nil) click to toggle source

@api public

# File lib/dm-migrations/auto_migration.rb, line 26
def auto_upgrade!(repository_name = nil)
  repository_execute(:auto_upgrade!, repository_name)
end
migrate!(repository_name = nil) click to toggle source

destructively migrates the repository upwards to match model definitions

@param [Symbol] name repository to act on, :default is the default

@api public

# File lib/dm-migrations/auto_migration.rb, line 12
def migrate!(repository_name = nil)
  repository(repository_name).migrate!
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.