Sha256: 16c33f2f181445893046c77b7beeafe129b46ef5ae077c5368e214196dcdc7cb

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

class Donate < ActiveRecord::Base
  attr_accessible :agent_id, :item_id
  belongs_to :agent
  belongs_to :item
  validates_associated :agent, :item
  validates_presence_of :agent, :item
end

# == Schema Information
#
# Table name: donates
#
#  id         :integer          not null, primary key
#  agent_id   :integer          not null
#  item_id    :integer          not null
#  created_at :datetime
#  updated_at :datetime
#

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre63 app/models/donate.rb