module Rake::TaskMigration

Constants

DEFAULT_NAMESPACE
DEFAULT_TABLE_NAME
VERSION

Public Class Methods

config() { |self| ... } click to toggle source
# File lib/rake/task_migration.rb, line 20
def config
  yield self
end
migrate() click to toggle source
# File lib/rake/task_migration.rb, line 24
def migrate
  Migrator.migrate(tasks)
end
tasks() click to toggle source
# File lib/rake/task_migration.rb, line 28
def tasks
  with_namespace { |namespace| return namespace.tasks }
end
with_namespace() { |namespace| ... } click to toggle source
# File lib/rake/task_migration.rb, line 32
def with_namespace
  Rake.application.in_namespace(migration_namespace) do |namespace|
    yield namespace if block_given?
  end
end