1 2 3 4 5 6 7 8
# frozen_string_literal: true # Payment # total: float class Payment < ApplicationRecord has_one :order belongs_to :card end