2019-11-05から1日間の記事一覧
やりたいこと # Item has_many :item_tag_relations, dependent: :destroy has_many :tags, through: :item_tag_relations, dependent: :destroy # ItemTagRelation belongs_to :item belongs_to :tag Tag name: string という状況で「"red"と"blue"と"yello…
やりたいこと # Item has_many :item_tag_relations, dependent: :destroy has_many :tags, through: :item_tag_relations, dependent: :destroy # ItemTagRelation belongs_to :item belongs_to :tag Tag name: string という状況で「"red"と"blue"と"yello…