Skip to content

Add .table method to models #89

@vladfaust

Description

@vladfaust

This is tricky, because table is defined in class-level annotation like this:

@[Onyx::SQL::Model::Options(table: "users")]
class User
end

One option is to make Model.schema macro define .table class method.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions