Commits

Anonymous committed 8a0fdb9

Added import for posts and comments.

  • Participants
  • Parent commits 251a884

Comments (0)

Files changed (3)

File grails-app/domain/com/koyanainc/bc/Comment.groovy

     Date createdAt
     String emailedFrom = ""
 
-    CommentableType objectOfComment
+    String commentableType
     
     static constraints = {
         author(nullable:false)
-        objectOfComment(nullable:false)
+        commentableType()
     }
 
     static mapping = {

File grails-app/domain/com/koyanainc/bc/Post.groovy

 
     static constraints = {
         author(nullable:false)
-        category(nullable:true)
+        //category(nullable:true)
         milestone(nullable:true)
 
-        project(nullable:false)
-        title(blank:false)
+        project(nullable:true)
+        title(nullable:false)
+        comments(nullable:true)
     }
 
     static mapping = {

File grails-app/domain/com/koyanainc/bc/Project.groovy

     String startPage = "www.default-start-page.com"
     Boolean showWriteboards = false
 
-    static hasMany = [participants:Person, todoLists:TodoList]
+    static hasMany = [participants:Person, todoLists:TodoList, posts: Post]
 
 
     static constraints = {