Commit cf967b93b3ddf86bcb85566399bc136f0d20f625
1 parent
e7a0dc32
Exists in
master
and in
28 other branches
ActionItem194: *oops* creating fields for versioned table
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1670 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
db/migrate/029_add_advertise_to_article.rb
1 | 1 | class AddAdvertiseToArticle < ActiveRecord::Migration |
2 | 2 | def self.up |
3 | 3 | # show in recent content? |
4 | - add_column :articles, :advertise, :boolean, :default => true | |
4 | + add_column :articles, :advertise, :boolean, :default => true | |
5 | + | |
6 | + # add this column by hand while acts_as_versioned dont have a method for update versioned table | |
7 | + add_column :article_versions, :advertise, :boolean, :default => true | |
5 | 8 | end |
6 | 9 | |
7 | 10 | def self.down |
8 | 11 | remove_column :articles, :advertise |
12 | + | |
13 | + # remove this column by hand while acts_as_versioned dont have a method for downdate versioned table | |
14 | + remove_column :article_versions, :advertise | |
9 | 15 | end |
10 | 16 | end | ... | ... |