From 7c877fc3db601682c29100416e81700314d408de Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Tue, 2 Sep 2008 20:36:16 +0000 Subject: [PATCH] ActionItem147: updated accept_comments column for existing articles --- db/migrate/053_add_accept_comments_to_articles.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/db/migrate/053_add_accept_comments_to_articles.rb b/db/migrate/053_add_accept_comments_to_articles.rb index dce463e..db7f83b 100644 --- a/db/migrate/053_add_accept_comments_to_articles.rb +++ b/db/migrate/053_add_accept_comments_to_articles.rb @@ -1,7 +1,9 @@ class AddAcceptCommentsToArticles < ActiveRecord::Migration def self.up add_column :articles, :accept_comments, :boolean, :default => true + execute 'update articles set accept_comments = (1>0)' add_column :article_versions, :accept_comments, :boolean, :default => true + execute 'update article_versions set accept_comments = (1>0)' end def self.down -- libgit2 0.21.2