diff --git a/db/migrate/20140918063522_add_hashed_content_to_files.rb b/db/migrate/20140918063522_add_hashed_content_to_files.rb index f7685207..f4d4a4a1 100644 --- a/db/migrate/20140918063522_add_hashed_content_to_files.rb +++ b/db/migrate/20140918063522_add_hashed_content_to_files.rb @@ -6,7 +6,7 @@ class AddHashedContentToFiles < ActiveRecord::Migration[4.2] reversible do |direction| direction.up do - CodeOcean::File.all.each(&:save) + CodeOcean::File.unscope(:order).all.each(&:save) end end end