class StandaloneMigrations::Tasks

Public Class Methods

configure() click to toggle source
# File lib/standalone_migrations/tasks.rb, line 4
def configure
  Deprecations.new.call
  configurator = Configurator.new
  paths = Rails.application.config.paths
  paths.add "config/database", :with => configurator.config
  paths.add "db/migrate", :with => configurator.migrate_dir
  paths.add "db/seeds", :with => configurator.seeds
end
load_tasks() click to toggle source
# File lib/standalone_migrations/tasks.rb, line 13
def load_tasks
  configure

  MinimalRailtieConfig.load_tasks
  %w(
    connection
    environment
    db/new_migration
  ).each do
    |task| load "standalone_migrations/tasks/#{task}.rake"
  end
  load "active_record/railties/databases.rake"
end