From cf967b93b3ddf86bcb85566399bc136f0d20f625 Mon Sep 17 00:00:00 2001 From: JoenioCosta Date: Fri, 18 Apr 2008 22:09:26 +0000 Subject: [PATCH] ActionItem194: *oops* creating fields for versioned table --- db/migrate/029_add_advertise_to_article.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/db/migrate/029_add_advertise_to_article.rb b/db/migrate/029_add_advertise_to_article.rb index e9d2a6f..45b4fb7 100644 --- a/db/migrate/029_add_advertise_to_article.rb +++ b/db/migrate/029_add_advertise_to_article.rb @@ -1,10 +1,16 @@ class AddAdvertiseToArticle < ActiveRecord::Migration def self.up # show in recent content? - add_column :articles, :advertise, :boolean, :default => true + add_column :articles, :advertise, :boolean, :default => true + + # add this column by hand while acts_as_versioned dont have a method for update versioned table + add_column :article_versions, :advertise, :boolean, :default => true end def self.down remove_column :articles, :advertise + + # remove this column by hand while acts_as_versioned dont have a method for downdate versioned table + remove_column :article_versions, :advertise end end -- libgit2 0.21.2