From 9f8f7b6cdbfcb9368bc71701150da1fcdd51ce0a Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Mon, 30 Apr 2012 09:52:41 -0400 Subject: [PATCH] populate choice_versions automatically in migration --- db/migrate/20120426144214_add_version_to_choice.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20120426144214_add_version_to_choice.rb b/db/migrate/20120426144214_add_version_to_choice.rb index 2be181c..3493dc8 100644 --- a/db/migrate/20120426144214_add_version_to_choice.rb +++ b/db/migrate/20120426144214_add_version_to_choice.rb @@ -2,7 +2,7 @@ class AddVersionToChoice < ActiveRecord::Migration def self.up # if you want to manually run the query to create # all the initial versions in choice_versions table set this to true - run_query_manually = true + run_query_manually = false # default of 1 so all existing rows have a version of 1 add_column :choices, :version, :integer, :default => 1 # make version nil by default -- libgit2 0.21.2