Skip to content

Instantly share code, notes, and snippets.

View m-barthelemy's full-sized avatar

Matthieu Barthelemy m-barthelemy

View GitHub Profile
@m-barthelemy
m-barthelemy / SchemaBuilder_generic.swift
Last active June 14, 2020 03:01
Extensions for using KeyPaths in Vapor4 Fluent migrations
import Vapor
import Fluent
// Example models
final class Organization: Model, Content {
static var schema = "organizations"
@ID (key: .id)
var id: UUID?

Keybase proof

I hereby claim:

  • I am m-barthelemy on github.
  • I am mbarthelemy (https://keybase.io/mbarthelemy) on keybase.
  • I have a public key whose fingerprint is 62C5 7166 D11C 5CB5 7233 8CFC ACCD 8808 530B AC1F

To claim this, I am signing this object: