lib/schema_monkey/monkey.rb in schema_monkey-2.0.1 vs lib/schema_monkey/monkey.rb in schema_monkey-2.1.0
- old
+ new
@@ -20,9 +20,10 @@
client.insert if @inserted
client.insert(dbm: @inserted_dbm) if @inserted_dbm
end
def insert(dbm: nil)
+ insert if dbm and not @inserted # first do all non-dbm-specific insertions
clients.each &it.insert(dbm: dbm)
@inserted = true
@inserted_dbm = dbm if dbm
end