diff --git a/src/main/scala/model/Profile.scala b/src/main/scala/model/Profile.scala index d7ff17f..ac5cb9d 100644 --- a/src/main/scala/model/Profile.scala +++ b/src/main/scala/model/Profile.scala @@ -1,6 +1,6 @@ package model -trait Profile { +trait ProfileBase { val profile: slick.driver.JdbcProfile import profile.simple._ @@ -16,10 +16,8 @@ } -object Profile extends { - val profile = slick.driver.H2Driver - -} with AccountComponent +trait CoreProfile extends ProfileBase + with AccountComponent with ActivityComponent with CollaboratorComponent with CommitCommentComponent @@ -33,7 +31,9 @@ with RepositoryComponent with SshKeyComponent with WebHookComponent - with PluginComponent with Profile { + with PluginComponent { + + val profile = slick.driver.H2Driver /** * Returns system date. @@ -41,3 +41,5 @@ def currentDate = new java.util.Date() } + +object Profile extends CoreProfile \ No newline at end of file