1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/models/order_activity.rb

12 lines
330 B
Ruby
Raw Normal View History

2022-09-15 20:19:19 +02:00
# frozen_string_literal: true
# OrderActivity is a model for hold activity of order
class OrderActivity < ApplicationRecord
belongs_to :order
2022-09-16 17:54:41 +02:00
TYPES = %w[paid payment_failed refunded in_progress ready canceled delivered note].freeze
2022-09-15 20:19:19 +02:00
enum activity_type: TYPES.zip(TYPES).to_h
validates :activity_type, presence: true
end