mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
6 lines
251 B
Ruby
6 lines
251 B
Ruby
class RepositoryTableState < ApplicationRecord
|
|
belongs_to :user, inverse_of: :repository_table_states, optional: true
|
|
belongs_to :repository, inverse_of: :repository_table_states, optional: true
|
|
|
|
validates :user, :repository, presence: true
|
|
end
|