Sha256: a49a7f392e96d245becc0017edec9082770585ac0bd0332f55f9f3c01bc9a4ba

Contents?: true

Size: 606 Bytes

Versions: 2

Compression:

Stored size: 606 Bytes

Contents

class AddTaskStatuses
  
  def self.up
    if TrackedStatusType.find_by_internal_identifier('pending').nil?
      TrackedStatusType.create(description: 'Pending', internal_identifier: 'pending')
    end

    if TrackedStatusType.find_by_internal_identifier('in_progress').nil?
      TrackedStatusType.create(description: 'In Progress', internal_identifier: 'in_progress')
    end

    if TrackedStatusType.find_by_internal_identifier('complete').nil?
      TrackedStatusType.create(description: 'Complete', internal_identifier: 'complete')
    end
  end
  
  def self.down
    #remove data here
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
erp_work_effort-4.2.0 db/data_migrations/20131215234936_add_task_statuses.rb
erp_work_effort-4.0.0 db/data_migrations/20131215234936_add_task_statuses.rb