Sha256: b3e22aa72dc775ba1d315494728d7bb320e32e15f68678e9d817ddc1831ea58f
Contents?: true
Size: 811 Bytes
Versions: 28
Compression:
Stored size: 811 Bytes
Contents
class Subscribe < ActiveRecord::Base attr_accessible :subscription_id, :work_id, :start_at, :end_at 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 not null # updated_at :datetime not null #
Version data entries
28 entries across 28 versions & 1 rubygems