Change belongs_to_required_by_default to true (#5888)
This commit is contained in:
committed by
Eugen Rochko
parent
7233ac07d2
commit
238de58e65
@ -13,8 +13,8 @@
|
||||
class Favourite < ApplicationRecord
|
||||
include Paginable
|
||||
|
||||
belongs_to :account, inverse_of: :favourites, required: true
|
||||
belongs_to :status, inverse_of: :favourites, counter_cache: true, required: true
|
||||
belongs_to :account, inverse_of: :favourites
|
||||
belongs_to :status, inverse_of: :favourites, counter_cache: true
|
||||
|
||||
has_one :notification, as: :activity, dependent: :destroy
|
||||
|
||||
|
Reference in New Issue
Block a user