Sign in Go Pro

Realm

Introduction to Migrations

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next

Previous

About

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. ### Links - [Realm Migrations](https://realm.io/docs/java/latest/#migrations) ### Source Code - [Sample Code](https://github.com/CasterIO/RealmExamples/tree/migrations)

Instructor

Links

Lessons in Realm