summaryrefslogtreecommitdiffstats
path: root/db/migrate/093_add_wiki_pages_protected.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/093_add_wiki_pages_protected.rb')
-rw-r--r--db/migrate/093_add_wiki_pages_protected.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/093_add_wiki_pages_protected.rb b/db/migrate/093_add_wiki_pages_protected.rb
new file mode 100644
index 000000000..49720fbb7
--- /dev/null
+++ b/db/migrate/093_add_wiki_pages_protected.rb
@@ -0,0 +1,9 @@
+class AddWikiPagesProtected < ActiveRecord::Migration
+ def self.up
+ add_column :wiki_pages, :protected, :boolean, :default => false, :null => false
+ end
+
+ def self.down
+ remove_column :wiki_pages, :protected
+ end
+end