omegahm/beerclub

View on GitHub
app/models/payment.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Payment < ActiveRecord::Base
  ID = 0
  belongs_to :user

  validates :user_id, :amount, presence: true
end

# == Schema Information
#
# Table name: payments
#
#  id         :integer          not null, primary key
#  user_id    :integer
#  amount     :float
#  created_at :datetime
#  updated_at :datetime
#