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

Update primary_key method arguments to fix issue with *args causing wrong number of arguments error #2358

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JoeCatling
Copy link

We have found that currently when a migration invokes the primary_key method in schema_statements.rb e.g t.primary_key :zlookupid, :string, limit: 1, null: false, it causes the following wrong number of arguments error:

ArgumentError: wrong number of arguments (given 3, expected 1..2)

Based on the use of keyword arguments in the other primary_key method definition in schema_definitions.rb, we think that this should be the same in the schema_statements.rb definition rather than using *args in the definition and super call.

We have added a local fix to get around this but wonder if this may be an issue that other's will face.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant