cirandas.net

ref: master

db/migrate/068_add_highlighted_to_articles.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class AddHighlightedToArticles < ActiveRecord::Migration
  def self.up
    add_column :articles, :highlighted, :boolean, :default => false
    add_column :article_versions, :highlighted, :boolean, :default => false
  end

  def self.down
    remove_column :articles, :highlighted
    remove_column :article_versions, :highlighted
  end
end