gab-social/app/models/transaction.rb
2019-07-02 03:10:25 -04:00

19 lines
550 B
Ruby

# == 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