Sha256: 0507fdffbe8f0ec6a29a5cabc64fabea44ee3f303965a2593e70e28d5f4ab836
Contents?: true
Size: 530 Bytes
Versions: 2
Compression:
Stored size: 530 Bytes
Contents
class CreateDesktopAppConsole def self.up app = DesktopApplication.create( :description => 'Compass Console', :icon => 'icon-console', :internal_identifier => 'compass_ae_console', ) admin_user = User.find_by_username('admin') admin_user.desktop_applications << app admin_user.save app.add_party_with_role(admin_user.party.dba_organization, RoleType.iid('dba_org')) end def self.down DesktopApplication.destroy_all(['internal_identifier = ?','compass_ae_console']) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
compass_ae_console-3.2.0 | db/data_migrations/20110824020426_create_desktop_app_console.rb |
compass_ae_console-3.1.0 | db/data_migrations/20110824020426_create_desktop_app_console.rb |