Sha256: 1d11673bf5ab2194da21f7ff422a0a09b84ab49a54744c0fdd7cbb81348de249

Contents?: true

Size: 271 Bytes

Versions: 2

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

module WebhookSystem
  class SubscriptionTopic < ActiveRecord::Base
    self.table_name = 'webhook_subscription_topics'

    validates :name, presence: true

    belongs_to :subscription, class_name: 'WebhookSystem::Subscription'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webhook_system-2.4.1 lib/webhook_system/subscription_topic.rb
webhook_system-2.4.0 lib/webhook_system/subscription_topic.rb