8000 Slug field in media table should be unique · Issue #242 · protalk/protalk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Slug field in media table should be unique #242

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

Open
Tocacar opened this issue Apr 30, 2014 · 0 comments
Open

Slug field in media table should be unique #242

Tocacar opened this issue Apr 30, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@Tocacar
Copy link
Member
Tocacar commented Apr 30, 2014

Duplicate slug values are being created in the media table which breaks the media_show route's action.

  • update the Media::slug property's annotation to ensure uniqueness
  • add code to a database migration class to drop duplicate rows BEFORE enforcing uniqueness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0