Sha256: 9093c89417b89134c19289cde917c3b246b8b0e55b0582f0bfba13d101816a09
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 Bytes
Contents
class AddOrderTrackedStatues def self.up order_statuses = TrackedStatusType.create(internal_identifier: 'order_statuses', description: 'Order Statuses') [ ['initialized', 'Initialized'], ['items_added', 'Items Added'], ['demographics_gathered', 'Demographics Gathered'], ['payment_failed', 'Payment Failed'], ['paid', 'Paid'], ['ready_to_ship', 'Ready To Ship'], ['shipped', 'Shipped'], ].each do |data| status = TrackedStatusType.create(internal_identifier: data[0], description: data[1]) status.move_to_child_of(order_statuses) end end def self.down TrackedStatusType.find_by_internal_identifier('order_statuses').destroy end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_orders-4.2.0 | db/data_migrations/20141214150732_add_order_tracked_statues.rb |