Sha256: 190f19c11d5729af641f636a9a864fe9a890cab6ab2bf9be2113493779a14876

Contents?: true

Size: 414 Bytes

Versions: 40

Compression:

Stored size: 414 Bytes

Contents

# This migration comes from erp_app (originally 20121130201859)
class UpgradeRemoveSystemMgmtApp
  
  def self.up
    #insert data here
    widget = Widget.find_by_xtype('systemmanagement_applicationrolemanagment')
    widget.destroy unless widget.nil?
    app = Application.find_by_internal_identifier('system_management')
    app.destroy unless app.nil?
  end
  
  def self.down
    #remove data here
  end

end

Version data entries

40 entries across 40 versions & 13 rubygems

Version Path
erp_search-3.1.1 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
rails_db_admin-2.1.1 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
knitkit-2.1.1 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_forms-3.0.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_app-3.1.2 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_app-3.0.16 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_app-3.1.1 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
rails_db_admin-2.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
knitkit-2.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_search-3.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_rules-3.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_invoicing-3.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_forms-2.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_financial_accounting-3.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_inventory-3.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_commerce-3.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_txns_and_accts-3.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_orders-3.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_products-3.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
erp_app-3.1.0 spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb