Two of our models uses this plugin, also I added two new models that will use it. Since, the number of models that uses this plugin is increasing, I decided to move it to the base model. It allows to run insert_conflict queries via model instance directly. https://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins/InsertConflict.html
14 lines
197 B
Ruby
14 lines
197 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "../model"
|
|
|
|
class StorageDevice < Sequel::Model
|
|
include ResourceMethods
|
|
|
|
many_to_one :vm_host
|
|
|
|
def self.ubid_type
|
|
UBID::TYPE_ETC
|
|
end
|
|
end
|