scinote-web/app/models/repository_table_state.rb
2019-06-10 12:24:04 +02:00

9 lines
250 B
Ruby

# frozen_string_literal: true
class RepositoryTableState < ApplicationRecord
belongs_to :user, inverse_of: :repository_table_states
belongs_to :repository, inverse_of: :repository_table_states
validates :user, :repository, presence: true
end