mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #23307 from mgrachev/fix-schema-migrations
Fix a bug with initialize schema_migrations table
This commit is contained in:
commit
2637fb75d8
1 changed files with 1 additions and 1 deletions
|
@ -992,7 +992,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 INTO #{sm_table} (version) VALUES #{inserting.map {|v| '(#{v})'}.join(', ') }"
|
||||
execute "INSERT INTO #{sm_table} (version) VALUES #{inserting.map {|v| "('#{v}')"}.join(', ') }"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue