mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
11 lines
376 B
Ruby
11 lines
376 B
Ruby
class WopiApp < ApplicationRecord
|
|
belongs_to :wopi_discovery,
|
|
foreign_key: 'wopi_discovery_id',
|
|
class_name: 'WopiDiscovery',
|
|
optional: true
|
|
has_many :wopi_actions,
|
|
class_name: 'WopiAction',
|
|
foreign_key: 'wopi_app_id',
|
|
dependent: :destroy
|
|
validates :name, :icon, :wopi_discovery, presence: true
|
|
end
|