Sha256: f310a41169fd1664e4d80aabfaf7c4a852d12c8003ba606e4f3cfa265daf0579

Contents?: true

Size: 382 Bytes

Versions: 41

Compression:

Stored size: 382 Bytes

Contents

# This migration comes from erp_app (originally 20120405193721)
class CreatePartyAndRoleTypeForCommunicationEvents < ActiveRecord::Migration
  def up
    role_type = RoleType.find_or_create_by_description_and_internal_identifier('Application', 'application')
    party = Party.find_or_create_by_description('Compass AE')
    party.role_type << role_type
  end

  def down
  end
end

Version data entries

41 entries across 41 versions & 14 rubygems

Version Path
erp_app-3.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb