Sha256: 024c9bc92c363d9adba88dc0616bc35f4d434164356795358878c05f1d36621a
Contents?: true
Size: 696 Bytes
Versions: 6
Compression:
Stored size: 696 Bytes
Contents
class Subscribe < ActiveRecord::Base belongs_to :subscription, counter_cache: true, validate: true belongs_to :work, class_name: 'Manifestation', validate: true validates_associated :subscription, :work validates_presence_of :subscription, :work, :start_at, :end_at validates_uniqueness_of :work_id, scope: :subscription_id end # == Schema Information # # Table name: subscribes # # id :integer not null, primary key # subscription_id :integer not null # work_id :integer not null # start_at :datetime not null # end_at :datetime not null # created_at :datetime # updated_at :datetime #
Version data entries
6 entries across 6 versions & 1 rubygems