Slide 53
Slide 53 text
module Relations
class Articles < ROM::Relation[:sql]
schema(:articles) do
attribute :id, Types::Serial
attribute :title, Types::String
attribute :body, Types::String
attribute :published, Types::Bool
attribute :published_at, Types::Time
end
end
end