diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-03 18:25:57 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-03 18:25:57 +0000 |
commit | 738cf2e187f90cd7273ae0de610bfea49b4b799f (patch) | |
tree | 7e43e83c5122a06a3a33911cd3e20e67c9856e93 /db/migrate/007_create_journals.rb | |
parent | 31c33f462d92aead29b8feb6445d8fe5626c4963 (diff) | |
download | redmine-738cf2e187f90cd7273ae0de610bfea49b4b799f.tar.gz redmine-738cf2e187f90cd7273ae0de610bfea49b4b799f.zip |
Replaces find(:first) calls in migrations.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10929 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/007_create_journals.rb')
-rw-r--r-- | db/migrate/007_create_journals.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/007_create_journals.rb b/db/migrate/007_create_journals.rb index e219ef67a..63bdd2374 100644 --- a/db/migrate/007_create_journals.rb +++ b/db/migrate/007_create_journals.rb @@ -51,6 +51,6 @@ class CreateJournals < ActiveRecord::Migration add_index "issue_histories", ["issue_id"], :name => "issue_histories_issue_id" - Permission.find(:first, :conditions => ["controller=? and action=?", 'issues', 'history']).destroy + Permission.where("controller=? and action=?", 'issues', 'history').first.destroy end end |