Commit 9f8f7b6cdbfcb9368bc71701150da1fcdd51ce0a
1 parent
3a774733
Exists in
master
and in
1 other branch
populate choice_versions automatically in migration
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
db/migrate/20120426144214_add_version_to_choice.rb
... | ... | @@ -2,7 +2,7 @@ class AddVersionToChoice < ActiveRecord::Migration |
2 | 2 | def self.up |
3 | 3 | # if you want to manually run the query to create |
4 | 4 | # all the initial versions in choice_versions table set this to true |
5 | - run_query_manually = true | |
5 | + run_query_manually = false | |
6 | 6 | # default of 1 so all existing rows have a version of 1 |
7 | 7 | add_column :choices, :version, :integer, :default => 1 |
8 | 8 | # make version nil by default | ... | ... |