1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/models/order_activity.rb
2022-09-16 17:54:41 +02:00

12 lines
330 B
Ruby

# frozen_string_literal: true
# OrderActivity is a model for hold activity of order
class OrderActivity < ApplicationRecord
belongs_to :order
TYPES = %w[paid payment_failed refunded in_progress ready canceled delivered note].freeze
enum activity_type: TYPES.zip(TYPES).to_h
validates :activity_type, presence: true
end