This commit is contained in:
Andrew Brown 2018-12-02 12:00:22 -06:00
parent b67b94dfa9
commit bb8ebfc674

View File

@ -1,7 +1,7 @@
class TemporaryFieldMigrationService < Service
def self.migrate_fields_for_content(content_model, user)
return unless content_model.present? && user.present?
return if content_model.persisted? && content_model.updated_at > 'September 1, 2018'.to_datetime1
return if content_model.persisted? && content_model.updated_at > 'September 1, 2018'.to_datetime
# todo we might be able to do this in a single left outer join
attribute_categories = content_model.class.attribute_categories(content_model.user)