Sha256: e8fdfd9fb9c5beab445816b1b0421786a64940f867ad7d32bfb0f16652c710fa
Contents?: true
Size: 417 Bytes
Versions: 10
Compression:
Stored size: 417 Bytes
Contents
class OxAccount < AbstractResource self.table_name = 'accounts' establish_connection ((Rails.env=="development") ? :dev_oxen_tables : :oxen_tables ) has_paper_trail has_many :users, dependent: :destroy, foreign_key: 'account_id' has_many :printers, dependent: :destroy, foreign_key: 'account_id' has_many :services, dependent: :destroy, foreign_key: 'account_id' validates :name, presence: true end
Version data entries
10 entries across 10 versions & 1 rubygems