From 06ace1e2b5cdccf67ff969ff0d355fd87f46dcf0 Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Tue, 17 Dec 2013 16:02:52 -0500 Subject: activerecord: Initialize Migration with version from MigrationProxy. --- activerecord/lib/active_record/migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index fc84b907a5..b57da73969 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -759,7 +759,7 @@ module ActiveRecord def load_migration require(File.expand_path(filename)) - name.constantize.new + name.constantize.new(name, version) end end -- cgit v1.2.3