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
knitkit-2.1.14 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
knitkit-2.1.13 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_forms-3.1.1 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_app-3.1.14 spec/dummy/db/data_migrations/20130422163145_create_party_and_role_type_for_communication_events.erp_app.rb
knitkit-2.1.12 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_orders-3.1.1 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_app-3.1.12 spec/dummy/db/data_migrations/20130422163145_create_party_and_role_type_for_communication_events.erp_app.rb
knitkit-2.1.9 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
knitkit-2.1.8 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_forms-3.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_app-3.1.10 spec/dummy/db/data_migrations/20130422163145_create_party_and_role_type_for_communication_events.erp_app.rb
erp_app-3.1.9 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_app-3.1.8 spec/dummy/db/data_migrations/20130422163145_create_party_and_role_type_for_communication_events.erp_app.rb
knitkit-2.1.7 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_txns_and_accts-3.1.1 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_commerce-3.1.3 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
knitkit-2.1.5 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_app-3.1.6 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_products-3.1.1 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_commerce-3.1.1 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb