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/CHANGELOG.md | 4 ++++ activerecord/lib/active_record/migration.rb | 10 +--------- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'activerecord') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index a471b93f3c..ea40952be0 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,7 @@ +* Remove deprecated block filter from `ActiveRecord::Migrator#migrate`. + + *Yves Senn* + * Remove deprecated String constructor from `ActiveRecord::Migrator`. *Yves Senn* 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