Closed maixhashi closed 3 days ago
ShuffledOverviewKeywordモデルのモデルスペックテストを作成する
class ShuffledOverviewKeyword < ApplicationRecord ## validation validates :keyword_id, uniqueness: { scope: :shuffled_overview_id, message: "has already been added to this shuffled overview" } # 特定の ShuffledOverview に対して Keyword が一意である ## association belongs_to :shuffled_overview belongs_to :keyword end
ShuffledOverviewKeywordモデルの下記事項についてのモデルスペックテストを作成する
実現したいこと
ShuffledOverviewKeywordモデルのモデルスペックテストを作成する
変更する事項
ShuffledOverviewKeywordモデルの下記事項についてのモデルスペックテストを作成する