scinote-web/app/models/repository_table_state.rb

7 lines
251 B
Ruby
Raw Normal View History

2017-06-23 21:19:08 +08:00
class RepositoryTableState < ApplicationRecord
2017-06-28 21:21:32 +08:00
belongs_to :user, inverse_of: :repository_table_states, optional: true
belongs_to :repository, inverse_of: :repository_table_states, optional: true
2017-06-06 23:35:29 +08:00
validates :user, :repository, presence: true
end