Story#108521790 - import dnskey history

This commit is contained in:
Vladimir Krylov 2015-12-11 17:43:20 +02:00
parent 01a82a2960
commit d41488472a
4 changed files with 80 additions and 0 deletions

View file

@ -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