class Blogging::Comment

Defined in:

apps/blogging/models/comment.cr

Constant Summary

FIELDS_ = {"id" => {type: "big_int", kwargs: {primary_key: true, auto: true}}, "body" => {type: "text", kwargs: {}}, "article" => {type: "many_to_one", kwargs: {to: Blogging::Article, related: :comments}}, "author" => {type: "many_to_one", kwargs: {to: Profiles::Profile}}, "created_at" => {type: "date_time", kwargs: {auto_now_add: true}}, "updated_at" => {type: "date_time", kwargs: {auto_now: true}}} of Nil => Nil

Instance Method Summary

Instance Method Detail

def article : Blogging::Article | Nil #

def article! : Blogging::Article #

def article=(related_object : Blogging::Article | Nil) #

def article? #

def article_id : Marten::DB::Field::ReferenceDBTypes | Nil #

def article_id! #

def article_id=(related_id : Marten::DB::Field::ReferenceDBTypes | Nil) #

def article_id? #

def author : Profiles::Profile | Nil #

def author! : Profiles::Profile #

def author=(related_object : Profiles::Profile | Nil) #

def author? #

def author_id : Marten::DB::Field::ReferenceDBTypes | Nil #

def author_id! #

def author_id=(related_id : Marten::DB::Field::ReferenceDBTypes | Nil) #

def author_id? #

def body : String | Nil | Nil #

def body! #

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

def body? #

def created_at : Time | Nil | Nil #

def created_at! #

def created_at=(created_at : Time | Nil | Nil) #

def created_at? #

def id : Int32 | Int64 | Nil | Nil #

def id! #

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

def id? #

def rendered_body #

[View source]
def updated_at : Time | Nil | Nil #

def updated_at! #

def updated_at=(updated_at : Time | Nil | Nil) #

def updated_at? #