class Comment
- Comment
- Marten::DB::Model
- Reference
- Object
Defined in:
models/comment.crConstant Summary
-
FIELDS_ =
{"id" => {type: "big_int", kwargs: {primary_key: true, auto: true}}, "message" => {type: "string", kwargs: {max_size: 255}}, "article" => {type: "many_to_one", kwargs: {to: Article, related: :comments}}} of Nil => Nil
Instance Method Summary
- #article : Article | Nil
- #article! : Article
- #article=(related_object : Article | Nil)
- #article?
- #article_id : Int32 | Int64 | Nil | Nil
- #article_id!
- #article_id=(related_id : Int32 | Int64 | Nil | Nil)
- #article_id?
- #id : Int32 | Int64 | Nil | Nil
- #id!
- #id=(id : Int32 | Int64 | Nil | Nil)
- #id?
- #message : String | Nil | Nil
- #message!
- #message=(message : String | Nil | Nil)
- #message?