summaryrefslogtreecommitdiffstats
path: root/db/migrate/093_add_wiki_pages_protected.rb
blob: a1e47e08d3f2af4295d8ce4dab6d3a5a4103d4cf (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: false

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