mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
12 lines
330 B
Ruby
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
|