annotation Gravity::Table

Overview

Class annotation to set the table a model belongs to. By default, models will be assigned to a table name that is a lowercased, pluralized version of their name. So the model Foo would be attached to the table foos.

Example:

@[Gravity::Table("bazes")]
class Foo
  include Gravity::Model
end

Defined in:

gravity/annotations.cr