Replaces find(:first) calls in migrations.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10929 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
31c33f462d
commit
738cf2e187
9 files changed
+18
-18
No files matched your search
@@ -7,6 +7,6 @@ class IssueMove < ActiveRecord::Migration
|
||||
end
|
||||
|
||||
def self.down
|
||||
Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'move_issues']).destroy
|
||||
Permission.where("controller=? and action=?", 'projects', 'move_issues').first.destroy
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user