mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Story#108521790 - import dnskey history
This commit is contained in:
parent
01a82a2960
commit
d41488472a
4 changed files with 80 additions and 0 deletions
|
@ -120,5 +120,9 @@ class Dnskey < ActiveRecord::Base
|
|||
def bin_to_hex(s)
|
||||
s.each_byte.map { |b| format('%02X', b) }.join
|
||||
end
|
||||
|
||||
def next_id
|
||||
self.connection.select_value("SELECT nextval('#{self.sequence_name}')")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue