Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle composite primary keys in scopes #537

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Rename specs
causztic committed Aug 18, 2024
commit 55834f99d9e60fca7104332d459848cacba2a742
4 changes: 2 additions & 2 deletions spec/integration/composite_primary_key_spec.rb
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
require "spec_helper"

describe "composite_primary_key" do
context 'without relations' do
context 'without associations' do
with_model :Parent do
table primary_key: [:first_name, :last_name] do |t|
t.string :first_name
@@ -26,7 +26,7 @@
end
end

context "without composite_primary_key, searching against relation with a composite_primary_key" do
context "without composite_primary_key, searching against association with a composite_primary_key" do
with_model :Parent do
table primary_key: [:first_name, :last_name] do |t|
t.string :first_name