Commit 8f958f43 by Artūrs Mekšs

Fix: assertion and test for composite_primary_keys

parent 7eb11394
......@@ -72,7 +72,7 @@ EOS
end
it "should get schema info even if the primary key is array, if using composite_primary_keys" do
klass = mock_class(:users, nil, [
klass = mock_class(:users, [:a_id, :b_id], [
mock_column(:a_id, :integer),
mock_column(:b_id, :integer),
mock_column(:name, :string, :limit => 50)
......@@ -83,8 +83,8 @@ EOS
#
# Table name: users
#
# a_id :integer not null
# b_id :integer not null
# a_id :integer not null, primary key
# b_id :integer not null, primary key
# name :string(50) not null
#
EOS
......
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