Sign in Go Pro


Introduction to Migrations

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



There will be a time when you need to change your data model in Realm. When you need to do this you'll need to use a Realm Migration. In this lesson you'll learn:

  • How to create a Realm Migration
  • How to increment the schema version
  • How to add a field to a Realm model
  • How to remove a field from a Realm model
  • How to have multiple migrations in one file
  • How to migration from one version to the next
  • What happens when you forget to update your Realm class but still execute the migration.


Source Code




There are no comments on this lesson, start the conversation below ...

You need to go PRO to post comments.

Lessons in Realm