luckyframework/lucky_record

Infer table name automatically

paulcsmith opened this issue · 0 comments

class User < BaseModel
  table do
    # fields
  end
end

Maybe even remove table macro:

class User < BaseModel
  column name : String
  belongs_to etc.
end

I kind of like the table macro because it keeps all table specific stuff in one place.