Change belongs_to_required_by_default to true (#5888)
This commit is contained in:
parent
7233ac07d2
commit
238de58e65
23 changed files with 52 additions and 50 deletions
|
@ -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)) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue