Skip to content
This repository was archived by the owner on Dec 22, 2020. It is now read-only.

Commit 74c64db

Browse files
committed
composite key is map
1 parent 02c9c12 commit 74c64db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mosql/schema.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def collections_for_mongo_db(db)
434434
def primary_sql_keys_for_schema(schema)
435435
keys = []
436436
if schema[:meta][:composite_key]
437-
keys = schema[:meta][:composite_key]
437+
keys = schema[:meta][:composite_key].map{ |k| k.to_sym }
438438
else
439439
keys << schema[:columns].find {|c| c[:source] == '_id'}[:name]
440440
end

0 commit comments

Comments
 (0)