This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
Add Question suffix to question_type
* Makes question type more readable as a class name * First step towards subclasses
- Loading branch information
Showing 8 changed files with 33 additions and 20 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions 13 example_app/db/migrate/20121128221331_add_question_suffix_to_question_type.rb
|Original file line number||Diff line number||Diff line change|
|@@ -0,0 +1,13 @@|
|class AddQuestionSuffixToQuestionType < ActiveRecord::Migration|
|UPDATE questions SET question_type = question_type || 'Question'|
|UPDATE questions SET question_type = REPLACE(question_type, 'Question', '')|