   Log.info "Skipped migrations" if globals.Document.migrationsDisabled
   # We still run the code to determine schema version and setup
   # observer to set schema version when inserting new documents,
-  # but we then inside the code skip running migrations themselves
+  # but we then inside the code skip running migrations themselves.
   migrations()
 
 Document = globals.Document

    counts

class globals.Document.RemoveGeneratedFieldsMigration extends globals.Document.MajorMigration
  # Fields is an array
  constructor: (fields) ->
    super()


      _id: 1
  ).fetch(), '_id'

  throw new Error "Documents with unknown schema version: #{unknownSchema}" if unknownSchema.length

  updateAll = false

  currentSchema = '1.0.0'
  currentSerial = 0
  currentName = initialName
  previousMigration = null
  for migration, i in @Meta.migrations
    if previousMigration is untilMigration
      break
    previousMigration = migration

    if migration instanceof @PatchMigration
      newSchema = semver.inc currentSchema, 'patch'
    else if migration instanceof @MinorMigration
