]> source.dussan.org Git - redmine.git/commitdiff
Renames commit access permission migration.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 13 Sep 2008 16:27:30 +0000 (16:27 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 13 Sep 2008 16:27:30 +0000 (16:27 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1812 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/096_add_commit_access_permission.rb [new file with mode: 0644]
db/migrate/20080827185639_add_repository_write_access.rb [deleted file]

diff --git a/db/migrate/096_add_commit_access_permission.rb b/db/migrate/096_add_commit_access_permission.rb
new file mode 100644 (file)
index 0000000..f73af2c
--- /dev/null
@@ -0,0 +1,14 @@
+class AddCommitAccessPermission < ActiveRecord::Migration
+
+  def self.up
+       Role.find(:all).select { |r| not r.builtin? }.each do |r|
+            r.add_permission!(:commit_access)
+       end
+  end
+
+  def self.down
+       Role.find(:all).select { |r| not r.builtin? }.each do |r|
+            r.remove_permission!(:commit_access)
+       end
+  end
+end
diff --git a/db/migrate/20080827185639_add_repository_write_access.rb b/db/migrate/20080827185639_add_repository_write_access.rb
deleted file mode 100644 (file)
index 2ea6e1e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-class AddRepositoryWriteAccess < ActiveRecord::Migration
-
-  def self.up
-       Role.find(:all).select { |r| not r.builtin? }.each do |r|
-            r.add_permission!(:commit_access)
-       end
-  end
-
-  def self.down
-       Role.find(:all).select { |r| not r.builtin? }.each do |r|
-            r.remove_permission!(:commit_access)
-       end
-  end
-end