Skip to content

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