From 6d554b263b8a31cf28383a140e631f4b537921ba Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Thu, 4 Jul 2013 10:02:20 +0200 Subject: Remove deprecated block filter from `ActiveRecord::Migrator#migrate`. --- activerecord/lib/active_record/migration.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index d3f33b907a..248ce5753b 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -903,15 +903,7 @@ module ActiveRecord raise UnknownMigrationVersionError.new(@target_version) end - running = runnable - - if block_given? - message = "block argument to migrate is deprecated, please filter migrations before constructing the migrator" - ActiveSupport::Deprecation.warn message - running.select! { |m| yield m } - end - - running.each do |migration| + runnable.each do |migration| Base.logger.info "Migrating to #{migration.name} (#{migration.version})" if Base.logger begin -- cgit v1.2.3