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
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue