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

#[derive(AsChangeset)] ignores custom primary keys #802

Closed
sgrif opened this Issue Mar 15, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@sgrif
Member

sgrif commented Mar 15, 2017

No description provided.

sgrif added a commit that referenced this issue Mar 15, 2017

Respect custom primary keys in `#[derive(AsChangeset)]`
AsChangeset is supposed to skip assigning the primary key, but right now
we're assuming it's a single column called id. This corrects the
behavior when the annotation is present.

Fixes #802.

sgrif added a commit that referenced this issue Mar 15, 2017

Respect custom primary keys in `#[derive(AsChangeset)]`
AsChangeset is supposed to skip assigning the primary key, but right now
we're assuming it's a single column called id. This corrects the
behavior when the annotation is present.

Fixes #802.

sgrif added a commit that referenced this issue Mar 15, 2017

Respect custom primary keys in `#[derive(AsChangeset)]`
AsChangeset is supposed to skip assigning the primary key, but right now
we're assuming it's a single column called id. This corrects the
behavior when the annotation is present.

Fixes #802.

sgrif added a commit that referenced this issue Mar 16, 2017

Respect custom primary keys in `#[derive(AsChangeset)]`
AsChangeset is supposed to skip assigning the primary key, but right now
we're assuming it's a single column called id. This corrects the
behavior when the annotation is present.

Fixes #802.

sgrif added a commit that referenced this issue Mar 16, 2017

Respect custom primary keys in `#[derive(AsChangeset)]`
AsChangeset is supposed to skip assigning the primary key, but right now
we're assuming it's a single column called id. This corrects the
behavior when the annotation is present.

Fixes #802.

@sgrif sgrif closed this in #803 Mar 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment