Sha256: a69fd36da6982c4eea0fcd00a5bcdfdc6728230edd509ec268928d2ea26a820b
Contents?: true
Size: 454 Bytes
Versions: 41
Compression:
Stored size: 454 Bytes
Contents
# frozen_string_literal: true module Decidim module Meetings # The data store for a Registration in the Decidim::Meetings component. class Registration < Meetings::ApplicationRecord belongs_to :meeting, foreign_key: "decidim_meeting_id", class_name: "Decidim::Meetings::Meeting" belongs_to :user, foreign_key: "decidim_user_id", class_name: "Decidim::User" validates :user, uniqueness: { scope: :meeting } end end end
Version data entries
41 entries across 41 versions & 2 rubygems