README.md

This commit is contained in:
Gwendal Roué committed 2015-07-05 22:25:07 +02:00
1 parent 30f8d7218d
commit 2836fbd15f
1 file changed
+1 -5
+1 -5
View File
@@ -717,11 +717,7 @@ You can for example **override primitive methods**:
class Book : RowModel {
...
override class var databasePrimaryKey: PrimaryKey {
return .Column("uuid")
}
// Before insertion, set uuid if not set yet.
// Before insertion, set uuid primary key if not set yet.
override func insert(db: Database) throws {
if uuid == nil {
uuid = NSUUID().UUIDString