(refs #74)Add web hook URL addition.

This commit is contained in:
takezoe
2013-09-06 02:32:51 +09:00
parent 35733cd82e
commit 4d1605ded2
4 changed files with 56 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ object WebHooks extends Table[WebHook]("WEB_HOOK") with BasicTemplate {
def url = column[String]("URL")
def * = userName ~ repositoryName ~ url <> (WebHook, WebHook.unapply _)
def byPrimaryKey(owner: String, repository: String) = byRepository(owner, repository)
def byPrimaryKey(owner: String, repository: String, url: String) = byRepository(owner, repository) && (this.url is url.bind)
}
case class WebHook(