Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #8 from realm-demos/mt/uuid
Browse files Browse the repository at this point in the history
id -> uuid
  • Loading branch information
icanzilb authored Oct 4, 2017
2 parents 651e64b + 7ff6db6 commit 64c1b6a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions RealmContent/Entities/ContentPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ public class ContentPage: Object {
public dynamic var mainColor: String?
public dynamic var lang: String?
public dynamic var tag = ""
public dynamic var id = ""
public dynamic var uuid = UUID().uuidString

override public static func indexedProperties() -> [String] {
return ["priority", "tag", "id"]
return ["priority", "tag"]
}

override public class func primaryKey() -> String {
return "uuid"
}

}

0 comments on commit 64c1b6a

Please sign in to comment.