Sha256: bdaeaf5b63cc2095d4b9ee6ceae94887d60c78d6b1f3663abf9ff8173af93c58
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
# This migration comes from erp_invoicing (originally 20120229174322) class AddBillpayWidget def self.up #insert data here if Widget.find_by_internal_identifier('billpay').nil? app = Application.find_by_internal_identifier('crm') billpay = Widget.create( :description => 'Bill Pay', :internal_identifier => 'billpay', :icon => 'icon-grid', :xtype => 'billpay' ) app.widgets << billpay app.save end end def self.down #remove data here Widget.find_by_internal_identifier('billpay').destroy end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_invoicing-3.1.0 | spec/dummy/db/data_migrations/20120229174322_add_billpay_widget.erp_invoicing.rb |