mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-10-30 07:58:28 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			280 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			280 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| class RepositoryTableState < ApplicationRecord
 | |
|   belongs_to :user, inverse_of: :repository_table_states
 | |
|   belongs_to :repository, class_name: 'RepositoryBase', inverse_of: :repository_table_states
 | |
| 
 | |
|   validates :user, :repository, presence: true
 | |
| end
 |