Sha256: 1b11fa96703d19aeab58d94205a4007b5a09d75bf8df82eeebc3678978db267e
Contents?: true
Size: 871 Bytes
Versions: 1
Compression:
Stored size: 871 Bytes
Contents
class AddSkillTypes def self.up %w{programming project_management program_management business_development business_analysis infrastructure_engineering network_operations web_design mobile_design mobile_development quality_assurance uncategorized }.each do |skill_type| unless SkillType.iid(skill_type) SkillType.create( description: skill_type.titleize, internal_identifier: skill_type ) end end end def self.down %w{programming project_management program_management business_development business_analysis infrastructure_engineering network_operations web_design mobile_design mobile_development quality_assurance uncategorized }.each do |skill_type| existing_skill_type = SkillType.iid(skill_type) existing_skill_type.destroy if existing_skill_type end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_work_effort-4.2.0 | db/data_migrations/20150709053041_add_skill_types.rb |