You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
307 B
20 lines
307 B
2 years ago
|
require "sequel"
|
||
|
|
||
|
Sequel::Model.plugin :timestamps, update_on_create: true
|
||
|
|
||
|
module RankKing
|
||
|
DB = Sequel.connect(ENV.fetch("DATABASE_URL"))
|
||
|
|
||
|
class Pool < Sequel::Model
|
||
|
end
|
||
|
|
||
|
class Item < Sequel::Model
|
||
|
end
|
||
|
|
||
|
class Axis < Sequel::Model(:axes)
|
||
|
end
|
||
|
|
||
|
def self.rate(axis:, winner:, loser:)
|
||
|
end
|
||
|
end
|