Sha256: 244af2b807be15d43674361f3650b903313dc483e53c08eac21531fd61505791
Contents?: true
Size: 424 Bytes
Versions: 7
Compression:
Stored size: 424 Bytes
Contents
# frozen_string_literal: true module Decidim module Plans # A plan tagging is a record that maps the plans with the tags. class PlanTagging < Plans::ApplicationRecord belongs_to :plan, class_name: "Decidim::Plans::Plan", foreign_key: :decidim_plan_id belongs_to :tag, class_name: "Decidim::Plans::Tag", foreign_key: :decidim_plans_tag_id validates :plan, :tag, presence: true end end end
Version data entries
7 entries across 7 versions & 1 rubygems