Commit 38ea3b222c550f96801187e2de3ece481e45ade0
1 parent
87bd26b0
Exists in
master
and in
1 other branch
add show_results column to question
Showing
2 changed files
with
11 additions
and
2 deletions
Show diff stats
db/migrate/20110124211740_add_show_results_to_questions.rb
0 → 100644
db/schema.rb
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | # | 9 | # |
| 10 | # It's strongly recommended to check this file into your version control system. | 10 | # It's strongly recommended to check this file into your version control system. |
| 11 | 11 | ||
| 12 | -ActiveRecord::Schema.define(:version => 20110120204933) do | 12 | +ActiveRecord::Schema.define(:version => 20110124211740) do |
| 13 | 13 | ||
| 14 | create_table "appearances", :force => true do |t| | 14 | create_table "appearances", :force => true do |t| |
| 15 | t.integer "voter_id" | 15 | t.integer "voter_id" |
| @@ -135,7 +135,6 @@ ActiveRecord::Schema.define(:version => 20110120204933) do | @@ -135,7 +135,6 @@ ActiveRecord::Schema.define(:version => 20110120204933) do | ||
| 135 | t.integer "votes_count", :default => 0 | 135 | t.integer "votes_count", :default => 0 |
| 136 | end | 136 | end |
| 137 | 137 | ||
| 138 | - add_index "prompts", ["id", "question_id", "left_choice_id", "right_choice_id"], :name => "index_foo" | ||
| 139 | add_index "prompts", ["left_choice_id", "right_choice_id", "question_id"], :name => "a_cool_index", :unique => true | 138 | add_index "prompts", ["left_choice_id", "right_choice_id", "question_id"], :name => "a_cool_index", :unique => true |
| 140 | add_index "prompts", ["left_choice_id"], :name => "index_prompts_on_left_choice_id" | 139 | add_index "prompts", ["left_choice_id"], :name => "index_prompts_on_left_choice_id" |
| 141 | add_index "prompts", ["question_id"], :name => "index_prompts_on_question_id" | 140 | add_index "prompts", ["question_id"], :name => "index_prompts_on_question_id" |
| @@ -157,6 +156,7 @@ ActiveRecord::Schema.define(:version => 20110120204933) do | @@ -157,6 +156,7 @@ ActiveRecord::Schema.define(:version => 20110120204933) do | ||
| 157 | t.boolean "it_should_autoactivate_ideas", :default => false | 156 | t.boolean "it_should_autoactivate_ideas", :default => false |
| 158 | t.integer "inactive_choices_count", :default => 0 | 157 | t.integer "inactive_choices_count", :default => 0 |
| 159 | t.boolean "uses_catchup", :default => true | 158 | t.boolean "uses_catchup", :default => true |
| 159 | + t.boolean "show_results", :default => true | ||
| 160 | end | 160 | end |
| 161 | 161 | ||
| 162 | create_table "skips", :force => true do |t| | 162 | create_table "skips", :force => true do |t| |