1 2 3 4 5 6 7 8 9 10 11 12 13 14
DB = Sequel.connect(ENV['DATABASE_URL'], max_connections: 12, pool_timeout: 60) class Package < Sequel::Model one_to_many :build one_to_many :repoman end class Build < Sequel::Model many_to_one :package end class Repoman < Sequel::Model(:repomans) many_to_one :package end