Blogging::Comment
Inherits Marten::DB::Model / Marten::Template::Object::Auto / Marten::Template::Object / Marten::Template::CanDefineTemplateAttributes / Marten::DB::Model::Callbacks / Marten::Core::Validation::Callbacks / Marten::Core::Validation / Marten::DB::Model::Validation / Marten::DB::Model::Querying / Marten::DB::Model::Persistence / Marten::DB::Model::Comparison / Marten::DB::Model::Table / Marten::DB::Model::Connection / Marten::Apps::Association / Marten::DB::Model::AppConfig / Marten::DB::Model::Inheritance / Reference / Object
Constants
FIELDS_ = {"id" => {type: "big_int", kwargs: {primary_key: true, auto: true}}, "body" => {type: "text", kwargs: ::NamedTuple.new}, "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 methods
article
article!
article?
article_id
article_id!
article_id?
author
author!
author?
author_id
author_id!
author_id?
body
body!
body=(body : String | Nil | Nil)
body?
created_at
created_at!
created_at=(created_at : Time | Nil | Nil)
created_at?
id
id!
id=(id : Int32 | Int64 | Nil | Nil)
id?
rendered_body
Sourceupdated_at
updated_at!
updated_at=(updated_at : Time | Nil | Nil)
updated_at?