summaryrefslogtreecommitdiffstats
path: root/db/migrate/022_serialize_possibles_values.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-02 20:28:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-02 20:28:37 +0000
commitabd921736b6db3a405c6505b3bf4022bb9097d41 (patch)
tree1cd6958b0826f9426b769cb5f41eccea52a71350 /db/migrate/022_serialize_possibles_values.rb
parent536747b74708188848d85d8de5df34e7aa762006 (diff)
downloadredmine-abd921736b6db3a405c6505b3bf4022bb9097d41.tar.gz
redmine-abd921736b6db3a405c6505b3bf4022bb9097d41.zip
Replaces find(:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10918 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/022_serialize_possibles_values.rb')
-rw-r--r--db/migrate/022_serialize_possibles_values.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/022_serialize_possibles_values.rb b/db/migrate/022_serialize_possibles_values.rb
index 5158f37fd..3e9fed0a1 100644
--- a/db/migrate/022_serialize_possibles_values.rb
+++ b/db/migrate/022_serialize_possibles_values.rb
@@ -1,6 +1,6 @@
class SerializePossiblesValues < ActiveRecord::Migration
def self.up
- CustomField.find(:all).each do |field|
+ CustomField.all.each do |field|
if field.possible_values and field.possible_values.is_a? String
field.possible_values = field.possible_values.split('|')
field.save