diff --git a/lib/data_migrator.rb b/lib/data_migrator.rb
index <HASH>..<HASH> 100644
--- a/lib/data_migrator.rb
+++ b/lib/data_migrator.rb
@@ -37,7 +37,7 @@ module RussellEdge
           {:name => name, :filename => file, :version => version, :scope => scope}
         end
 
-        migrations.sort{|h| h[:version]}
+        migrations.sort_by{|h| h[:version]}
       end
 
       def next_migration_number(number)
fixed bug in sorting of data_migrations by version