Change belongs_to_required_by_default to true (#5888)
This commit is contained in:
committed by
Eugen Rochko
parent
7233ac07d2
commit
238de58e65
@ -10,9 +10,9 @@
|
||||
#
|
||||
|
||||
class ListAccount < ApplicationRecord
|
||||
belongs_to :list, required: true
|
||||
belongs_to :account, required: true
|
||||
belongs_to :follow, required: true
|
||||
belongs_to :list
|
||||
belongs_to :account
|
||||
belongs_to :follow
|
||||
|
||||
validates :account_id, uniqueness: { scope: :list_id }
|
||||
|
||||
|
Reference in New Issue
Block a user