debt-manager/app/models/spending.rb

26 lines
650 B
Ruby
Raw Normal View History

# == Schema Information
#
# Table name: spendings
#
# id :uuid not null, primary key
# amount :decimal(, ) default(0.0), not null
# description :text default(""), not null
# created_at :datetime not null
# updated_at :datetime not null
# bubble_id :uuid not null
# owner_id :uuid not null
#
# Indexes
#
# index_spendings_on_bubble_id (bubble_id)
# index_spendings_on_owner_id (owner_id)
#
# Foreign Keys
#
# fk_rails_... (owner_id => users.id)
#
class Spending < ApplicationRecord
belongs_to :owner, class_name: "User"
belongs_to :bubble
end