Commit 7eb11394 by Artūrs Mekšs

Fix: primary key might be array (with composite_primary_keys gem)

parent 3faf06f1
...@@ -8,7 +8,7 @@ describe AnnotateModels do ...@@ -8,7 +8,7 @@ describe AnnotateModels do
options = { options = {
:connection => mock("Conn", :indexes => []), :connection => mock("Conn", :indexes => []),
:table_name => table_name, :table_name => table_name,
:primary_key => primary_key && primary_key.to_s, :primary_key => primary_key,
:column_names => columns.map { |col| col.name.to_s }, :column_names => columns.map { |col| col.name.to_s },
:columns => columns :columns => columns
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment