Created
March 23, 2016 14:08
-
-
Save nightfox/0f5cf8caf4b62d4d2c33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DisplayedDataAttribute.where.not(sort_by: nil).find_in_batches(batch_size: 100).each do |batch| | |
batch.each do |attribute| | |
attribute.create_or_update_sort_attribute | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment