cirandas.net

ref: master

db/migrate/057_add_notify_comments_to_articles.rb


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

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