Sha256: ae4eebf604d9fb77cb2614159aa6d5b2f2f4d3cf62837124861a6208746246f7

Contents?: true

Size: 694 Bytes

Versions: 12

Compression:

Stored size: 694 Bytes

Contents

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

12 entries across 12 versions & 1 rubygems

Version Path
erp_tech_svcs-4.2.0 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
erp_tech_svcs-4.0.0 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
erp_tech_svcs-3.1.8 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
erp_tech_svcs-3.1.7 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
erp_tech_svcs-3.1.5 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
erp_tech_svcs-3.1.4 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
erp_tech_svcs-3.1.3 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
erp_tech_svcs-3.1.2 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
erp_tech_svcs-3.1.1 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
erp_tech_svcs-3.0.12 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
erp_tech_svcs-3.1.0 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
erp_tech_svcs-3.0.11 db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb