summaryrefslogtreecommitdiffstats
path: root/db/migrate/093_add_wiki_pages_protected.rb
blob: 6ff72d8c515de7a5e574e137139b426c2a074672 (plain)
1
2
3
4
5
6
7
8
9
class AddWikiPagesProtected < ActiveRecord::Migration[4.2]
  def self.up
    add_column :wiki_pages, :protected, :boolean, :default => false, :null => false
  end

  def self.down
    remove_column :wiki_pages, :protected
  end
end