scinote-web/app/models/repository_table_state.rb

9 lines
250 B
Ruby
Raw Normal View History

2019-05-09 23:10:02 +08:00
# frozen_string_literal: true
2017-06-23 21:19:08 +08:00
class RepositoryTableState < ApplicationRecord
2019-05-09 23:10:02 +08:00
belongs_to :user, inverse_of: :repository_table_states
belongs_to :repository, inverse_of: :repository_table_states
2017-06-06 23:35:29 +08:00
validates :user, :repository, presence: true
end