Sha256: ed63f4de7ea6e8c37bb2b7baeee49bac10099c78b1f7ef4f2118c9eabf1817cf

Contents?: true

Size: 343 Bytes

Versions: 28

Compression:

Stored size: 343 Bytes

Contents

class CreateWebsiteRoleTypes
  
  def self.up
    RoleType.create(:description => 'Website Owner', :internal_identifier => 'website_owner')
    RoleType.create(:description => 'Website Member', :internal_identifier => 'website_member')
  end
  
  def self.down
    RoleType.website_owner.destroy
    RoleType.website_member.destroy
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
knitkit-2.0.9 db/data_migrations/20120127144444_create_website_role_types.rb
knitkit-2.0.7 db/data_migrations/20120127144444_create_website_role_types.rb
knitkit-2.0.6 db/data_migrations/20120127144444_create_website_role_types.rb
knitkit-2.0.5 db/data_migrations/20120127144444_create_website_role_types.rb
knitkit-2.0.4 db/data_migrations/20120127144444_create_website_role_types.rb
knitkit-2.0.3 db/data_migrations/20120127144444_create_website_role_types.rb
knitkit-2.0.2 db/data_migrations/20120127144444_create_website_role_types.rb
knitkit-2.0.1 db/data_migrations/20120127144444_create_website_role_types.rb