gab-social/app/models/transaction.rb

19 lines
550 B
Ruby
Raw Permalink Normal View History

2019-07-02 08:10:25 +01:00
# == Schema Information
#
# Table name: transactions
#
# id :bigint(8) not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
# account_id :integer not null
# payment_type :string
# provider_type :string
# provider_response :text
# amount :integer not null
# success :boolean default(FALSE), not null
#
class Transaction < ApplicationRecord
belongs_to :account, inverse_of: :transactions
end