mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 05:05:55 +08:00
8 lines
238 B
Ruby
8 lines
238 B
Ruby
# frozen_string_literal: true
|
|
|
|
class StepAsset < ApplicationRecord
|
|
validates :step, :asset, presence: true
|
|
|
|
belongs_to :step, inverse_of: :step_assets, touch: true
|
|
belongs_to :asset, inverse_of: :step_asset, dependent: :destroy
|
|
end
|