Skip to content

Commit

Permalink
Use conventional fixture load
Browse files Browse the repository at this point in the history
rails/rails#29504 implements bulk insert for fixture load.
Oracle database needs another syntax.
In the mean time this commit just falls back to conventional fixture load.

Refer rails/arel#482
  • Loading branch information
yahonda committed Jun 20, 2017
1 parent 390f99a commit b701946
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ def insert_fixture(fixture, table_name) #:nodoc:
end
end

# fallback to non bulk fixture insert
def insert_fixtures(fixtures, table_name)
fixtures.each do |fixture|
insert_fixture(fixture, table_name)
end
end

# Oracle Database does not support this feature
# Refer https://community.oracle.com/ideas/13845 and consider to vote
# if you need this feature.
Expand Down

0 comments on commit b701946

Please sign in to comment.