Sha256: 695a8709526ca743a2d020b0dd2959ae8030b476953ce82449bd2160be89be94
Contents?: true
Size: 861 Bytes
Versions: 3
Compression:
Stored size: 861 Bytes
Contents
module StandaloneMigrationsNew class Tasks class << self def configure(options = {}) Deprecations.new.call Configurator.new options end def load_tasks(options = {}) configure(options) Configurator.environments_config do |proxy| ActiveRecord::Tasks::DatabaseTasks.database_configuration = proxy.configurations end MinimalRailtieConfig.load_tasks %w( connection environment db/new_migration ).each do |task| load "standalone_migrations_new/tasks/#{task}.rake" end load "active_record/railties/databases.rake" end end end class Tasks::Deprecations def call if File.directory?('db/migrations') puts "DEPRECATED move your migrations into db/migrate" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems