Change belongs_to_required_by_default to true (#5888)
This commit is contained in:
		
				
					committed by
					
						
						Eugen Rochko
					
				
			
			
				
	
			
			
			
						parent
						
							7233ac07d2
						
					
				
				
					commit
					238de58e65
				
			@@ -14,7 +14,7 @@
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
class Invite < ApplicationRecord
 | 
			
		||||
  belongs_to :user, required: true
 | 
			
		||||
  belongs_to :user
 | 
			
		||||
  has_many :users, inverse_of: :invite
 | 
			
		||||
 | 
			
		||||
  scope :available, -> { where(expires_at: nil).or(where('expires_at >= ?', Time.now.utc)) }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user