Sha256: b26e32945f1476f1e243881200f233e663f25e8d2a6e4608d81b66525b052155

Contents?: true

Size: 830 Bytes

Versions: 52

Compression:

Stored size: 830 Bytes

Contents

# This migration comes from erp_tech_svcs (originally 20111111144706)
class SetupAuditLogTypes
  
  def self.up
    application_alt = AuditLogType.create(:description => 'Application', :internal_identifier => 'application')

    [
      {:description => 'Custom Message', :internal_identifier => 'custom_message'},
      {:description => 'Successful Logout', :internal_identifier => 'successful_logout'},
      {:description => 'Successful Login', :internal_identifier => 'successful_login'},
      {:description => 'Accessed Area', :internal_identifier => 'accessed_area'},
      {:description => 'Session Timeout', :internal_identifier => 'session_timeout'}
    ].each do |alt_hash|
        AuditLogType.create(alt_hash).move_to_child_of(application_alt)
    end
  end
  
  def self.down
    AuditLogType.destroy_all
  end

end

Version data entries

52 entries across 52 versions & 18 rubygems

Version Path
erp_tech_svcs-3.1.8 spec/dummy/db/data_migrations/20130220143310_setup_audit_log_types.erp_tech_svcs.rb
knitkit-2.1.14 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
knitkit-2.1.13 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
erp_forms-3.1.1 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
erp_app-3.1.14 spec/dummy/db/data_migrations/20130422163135_setup_audit_log_types.erp_tech_svcs.rb
knitkit-2.1.12 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
erp_orders-3.1.1 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
erp_work_effort-3.1.1 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
erp_tech_svcs-3.1.5 spec/dummy/db/data_migrations/20130220143310_setup_audit_log_types.erp_tech_svcs.rb
erp_app-3.1.12 spec/dummy/db/data_migrations/20130422163135_setup_audit_log_types.erp_tech_svcs.rb
knitkit-2.1.9 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
knitkit-2.1.8 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
erp_tech_svcs-3.1.4 spec/dummy/db/data_migrations/20130220143310_setup_audit_log_types.erp_tech_svcs.rb
erp_forms-3.1.0 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
erp_app-3.1.10 spec/dummy/db/data_migrations/20130422163135_setup_audit_log_types.erp_tech_svcs.rb
erp_app-3.1.9 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
erp_app-3.1.8 spec/dummy/db/data_migrations/20130422163135_setup_audit_log_types.erp_tech_svcs.rb
knitkit-2.1.7 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
erp_txns_and_accts-3.1.1 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
erp_commerce-3.1.3 spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb