Sha256: eda1aba00731f4ed07cae71770c7ef7838e38ccf3c4f7089525e255c56f2b62c

Contents?: true

Size: 764 Bytes

Versions: 51

Compression:

Stored size: 764 Bytes

Contents

# This migration comes from erp_tech_svcs (originally 20121116155018)
class CreateGroupRelationshipAndRoleTypes
  
  def self.up
    #insert data here
    to_role = RoleType.create(:description => 'Security Group', :internal_identifier => 'group')
    from_role = RoleType.create(:description => 'Security Group Member', :internal_identifier => 'group_member')
    RelationshipType.create(:description => 'Security Group Membership', 
                            :name => 'Group Membership', 
                            :internal_identifier => 'group_membership',
                            :valid_from_role => from_role,
                            :valid_to_role => to_role
                          )
  end
  
  def self.down
    #remove data here
  end

end

Version data entries

51 entries across 51 versions & 17 rubygems

Version Path
knitkit-2.1.5 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_app-3.1.6 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_tech_svcs-3.1.3 spec/dummy/db/data_migrations/20130220143311_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_products-3.1.1 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_commerce-3.1.1 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_search-3.1.1 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
rails_db_admin-2.1.1 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
knitkit-2.1.1 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_forms-3.0.0 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_tech_svcs-3.1.1 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_app-3.1.2 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_app-3.0.16 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_tech_svcs-3.0.12 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_app-3.1.1 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
rails_db_admin-2.1.0 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
knitkit-2.1.0 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_search-3.1.0 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_rules-3.1.0 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_invoicing-3.1.0 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
erp_forms-2.1.0 spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb