class Comment

Defined in:

models/comment.cr

Constant 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

Instance Method Detail

def article : Article | Nil #

def article! : Article #

def article=(related_object : Article | Nil) #

def article? #

def article_id : Int32 | Int64 | Nil | Nil #

def article_id! #

def article_id=(related_id : Int32 | Int64 | Nil | Nil) #

def article_id? #

def id : Int32 | Int64 | Nil | Nil #

def id! #

def id=(id : Int32 | Int64 | Nil | Nil) #

def id? #

def message : String | Nil | Nil #

def message! #

def message=(message : String | Nil | Nil) #

def message? #