From e7a0dc3253b98231fa8295192c5a012589cffcfd Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Fri, 18 Apr 2008 14:34:16 +0000 Subject: [PATCH] ActionItem194: moving the change in article schema to a new migration to make easy migrate the production database --- db/migrate/007_create_articles.rb | 3 --- db/migrate/029_add_advertise_to_article.rb | 10 ++++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 db/migrate/029_add_advertise_to_article.rb diff --git a/db/migrate/007_create_articles.rb b/db/migrate/007_create_articles.rb index b1fe8cf..0647190 100644 --- a/db/migrate/007_create_articles.rb +++ b/db/migrate/007_create_articles.rb @@ -35,9 +35,6 @@ class CreateArticles < ActiveRecord::Migration # attachment_fu data for images t.column :height, :integer # in pixels t.column :width, :integer # in pixels - - # show in recent content? - t.column :advertise, :boolean, :default => true end diff --git a/db/migrate/029_add_advertise_to_article.rb b/db/migrate/029_add_advertise_to_article.rb new file mode 100644 index 0000000..e9d2a6f --- /dev/null +++ b/db/migrate/029_add_advertise_to_article.rb @@ -0,0 +1,10 @@ +class AddAdvertiseToArticle < ActiveRecord::Migration + def self.up + # show in recent content? + add_column :articles, :advertise, :boolean, :default => true + end + + def self.down + remove_column :articles, :advertise + end +end -- libgit2 0.21.2