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_search-3.1.1 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
rails_db_admin-2.1.1 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
knitkit-2.1.1 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_forms-3.0.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_app-3.1.2 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_app-3.0.16 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_app-3.1.1 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
rails_db_admin-2.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
knitkit-2.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_search-3.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_rules-3.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_invoicing-3.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_forms-2.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_financial_accounting-3.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
compass_ae_console-2.0.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_inventory-3.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_commerce-3.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_txns_and_accts-3.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_orders-3.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
erp_products-3.1.0 spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb