Can someone volunteer to explain why the class below does not work?
... src/model/user.rb:18: undefined method `set_schema' for User:Class (NoMethodError)
I looked at the Sequel-3.0 lib / folder, and the set_schema method set_schema defined in the ClassMethods module.
I am sure the solution is simple. I thought it should work "as is":
require 'sequel' class User < Sequel::Model(:user) set_schema do set_primary_key :id String :name end end
source share