aboutsummaryrefslogtreecommitdiff
blob: 68e012726ce6384a74419217ae1bb938d4f24042 (plain)
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