Update authentication method
This commit is contained in:
11
app/relations/login_tokens.rb
Normal file
11
app/relations/login_tokens.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Adamantium
|
||||
module Relations
|
||||
class LoginTokens < ROM::Relation[:sql]
|
||||
schema :login_tokens, infer: true
|
||||
|
||||
auto_struct(true)
|
||||
end
|
||||
end
|
||||
end
|
11
app/relations/users.rb
Normal file
11
app/relations/users.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Adamantium
|
||||
module Relations
|
||||
class Users < ROM::Relation[:sql]
|
||||
schema :users, infer: true
|
||||
|
||||
auto_struct(true)
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user