Sha256: 27aa92337d2c030721d31b33c1c39d427ed6ef7d3922420b43b723331db0b74e

Contents?: true

Size: 318 Bytes

Versions: 33

Compression:

Stored size: 318 Bytes

Contents

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

33 entries across 33 versions & 1 rubygems

Version Path
erp_app-4.0.0 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.16 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.15 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.14 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.13 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.12 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.11 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.10 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.9 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.8 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.7 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.6 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.5 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.4 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.3 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.2 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.0.16 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.0.15 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.1 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb
erp_app-3.1.0 db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb