We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would love to see support for foreign_key and references in migration to support composite keys.
foreign_key
references
such that the following will work:
def change create_table :tags do |t| t.string :user_first_name t.string :user_last_name t.foreign_key :user, column: [:first_name, :last_name], primary_key: [:user_first_name, :user_last_name] end end
Similar for t.references
t.references
The text was updated successfully, but these errors were encountered:
That would be a nice feature. Happy to take a patch if you would like to work on one.
Seems like work on composite primary keys is being done for ActiveRecord, hopefully that will include migration support.
Sorry, something went wrong.
No branches or pull requests
I would love to see support for
foreign_key
andreferences
in migration to support composite keys.such that the following will work:
Similar for
t.references
The text was updated successfully, but these errors were encountered: