title: Create a realm object during a Realm Migration
body: <p>Are you able to create a realm Object during a migration?  I am wanting to extract part of an existing realm object and create a new object with that data, but the migration always hangs up.  Here is my migration code</p>
  
  <pre><code>private class var migrationBlock: MigrationBlock {
      return { migration, oldSchemaVersion in
          if oldSchemaVersion &lt; 1 {
              print("Shema Version 0")
              migration.enumerate(Transaction.className(), { (oldObject, newObject) -&gt; Void in
                  let oldDate = oldObject!["date"] as! NSDate
                  let newTransactionDate = TransactionDate()
                  newTransactionDate.date = oldDate
                  try! Realm.getRealm().write { Realm.getRealm().add(newTransactionDate, update: true) }
                  newObject!["_date"] = newTransactionDate
              })
          }
      }
  }
  </code></pre>