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