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