# frozen_string_literal: true class SubscriptionClientResource < ActiveRecord::Base belongs_to :supplier, class_name: "SubscriptionClientSupplier" has_many :notices, class_name: "SubscriptionClientNotice", as: :notice_subject, dependent: :destroy has_many :subscriptions, foreign_key: "resource_id", class_name: "SubscriptionClientSubscription", dependent: :destroy def region "us-east-1" end end # == Schema Information # # Table name: subscription_client_resources # # id :bigint not null, primary key # supplier_id :bigint # name :string not null # created_at :datetime not null # updated_at :datetime not null # access_key_id :string # secret_access_key :string #