Slide 58
Slide 58 text
rom = ROM::Environment.setup(:memory)
rom.schema do
!
relation(:users, internal: true) do
attribute :id, Integer, rename: :user_id
attribute :name, String
key :user_id
end
relation(:tasks) do
attribute :user_id, Integer
attribute :title, String
key :user_id, :title
end
!
end
that’s a base, internal
relation