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

Add indexes to schema for specs #474

Merged
merged 3 commits into from
Mar 21, 2014
Merged

Add indexes to schema for specs #474

merged 3 commits into from
Mar 21, 2014

Conversation

jonseaberg
Copy link
Contributor

A unique index on the name field was added to the migration, but not the schema file. I added the indexes to the schema file so the unique index on name is available during specs. This makes it a bit easier to demonstrate which features work and which do not when the unique index is enabled.

@seuros
Copy link
Collaborator

seuros commented Feb 1, 2014

the typo fix is already in master.

@jonseaberg
Copy link
Contributor Author

Rebased to remove typo fix.

@forest
Copy link

forest commented Mar 15, 2014

👍

@seuros
Copy link
Collaborator

seuros commented Mar 21, 2014

Would you mind rebasing this PR? i want to merge it.

…e. Also added a quiz method for case insensitive collation. Its important to know when testing case sensitivity.
Some case sensitive specs are not able to run on mysql because the default is case insensitive collation.  This combined with a unique index makes adding tags Awesome and awesome impossible because the database sees them as the same thing.  To make some of the case sensitive spec pass on mysql, I had to remove the index just for those specs.  I added a shared_example that is included where needed.
@jonseaberg
Copy link
Contributor Author

Rebased and al tests passing!

@seuros
Copy link
Collaborator

seuros commented Mar 21, 2014

Thank you.

seuros added a commit that referenced this pull request Mar 21, 2014
@seuros seuros merged commit 9436ecb into mbleigh:master Mar 21, 2014
tekniklr pushed a commit to tekniklr/acts-as-taggable-on that referenced this pull request Mar 19, 2021
…a-for-specs

Add indexes to schema for specs
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.

3 participants