cirandas.net

ref: master

db/migrate/062_article_notify_comments_change_default.rb


1
2
3
4
5
6
7
8
9
class ArticleNotifyCommentsChangeDefault < ActiveRecord::Migration
  def self.up
    change_column_default :articles, :notify_comments, true
  end

  def self.down
    change_column_default :articles, :notify_comments, false
  end
end