]> source.dussan.org Git - redmine.git/commitdiff
Typo in migration 97 name (#1929).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 21 Sep 2008 20:38:36 +0000 (20:38 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 21 Sep 2008 20:38:36 +0000 (20:38 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1896 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/097_add_view_wiki_edits_permission.rb [new file with mode: 0644]
db/migrate/097_add_wiew_wiki_edits_permission.rb [deleted file]

diff --git a/db/migrate/097_add_view_wiki_edits_permission.rb b/db/migrate/097_add_view_wiki_edits_permission.rb
new file mode 100644 (file)
index 0000000..3e4b26b
--- /dev/null
@@ -0,0 +1,13 @@
+class AddViewWikiEditsPermission < ActiveRecord::Migration
+  def self.up
+       Role.find(:all).each do |r|
+         r.add_permission!(:view_wiki_edits) if r.has_permission?(:view_wiki_pages)
+       end
+  end
+
+  def self.down
+       Role.find(:all).each do |r|
+         r.remove_permission!(:view_wiki_edits)
+       end
+  end
+end
diff --git a/db/migrate/097_add_wiew_wiki_edits_permission.rb b/db/migrate/097_add_wiew_wiki_edits_permission.rb
deleted file mode 100644 (file)
index 0f87ada..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-class AddWiewWikiEditsPermission < ActiveRecord::Migration
-  def self.up
-       Role.find(:all).each do |r|
-         r.add_permission!(:view_wiki_edits) if r.has_permission?(:view_wiki_pages)
-       end
-  end
-
-  def self.down
-       Role.find(:all).each do |r|
-         r.remove_permission!(:view_wiki_edits)
-       end
-  end
-end