diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2016-04-22 18:32:26 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2016-04-22 18:32:47 -0700 |
commit | 4c76ce640449cc2568e31b5ed533caec8af5e39f (patch) | |
tree | e6b73b3810775b0983ca63ad81895dcfef740baa | |
parent | 00b2cbad7c6ccc28afa2acc8c31d14b853feec77 (diff) | |
download | rails-4c76ce640449cc2568e31b5ed533caec8af5e39f.tar.gz rails-4c76ce640449cc2568e31b5ed533caec8af5e39f.tar.bz2 rails-4c76ce640449cc2568e31b5ed533caec8af5e39f.zip |
Schema load: Fix dupe version insert
Re. 6e098284e97250eaed6f30f5c7c362d87da986b0
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index aadac5e7ee..105d9cde92 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -1038,7 +1038,7 @@ module ActiveRecord if (duplicate = inserting.detect {|v| inserting.count(v) > 1}) raise "Duplicate migration #{duplicate}. Please renumber your migrations to resolve the conflict." end - execute insert_versions_sql(versions) + execute insert_versions_sql(inserting) end end |