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

Remove valid answers usage #2073

Merged
merged 12 commits into from
Oct 18, 2017
Merged

Conversation

bertocq
Copy link
Collaborator

@bertocq bertocq commented Oct 17, 2017

Where

What

  • Remove deprecated Poll::Question's valid_answers attribute and fix its usage to Poll::Question::Answer

How

Reviewing all usages, replacing most of them for .question_answers and fixing the specs & factories & dev_seeds

Screenshots

No need, underneath changes only.

Test

Fixed to use question_answers instead

Deployment

⚠️ Need a tmp rake to migrate from existing valid_answers to new Poll::Question::Answer or #2074 will destroy all values before they can be saved

Warnings

None

Copy link
Member

@voodoorai2000 voodoorai2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome

@bertocq bertocq merged commit c6d6830 into master Oct 18, 2017
@bertocq bertocq deleted the feature/2072#remove_question_valid_answers branch October 18, 2017 09:52
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.

None yet

2 participants