Added percent fields and changed the setters on Deliverables to save the values. #1135
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class AddPercentageFieldsToDeliverables < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :deliverables, :overhead_percent, :integer
|
||||
add_column :deliverables, :materials_percent, :integer
|
||||
add_column :deliverables, :profit_percent, :integer
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :deliverables, :overhead_percent
|
||||
remove_column :deliverables, :materials_percent
|
||||
remove_column :deliverables, :profit_percent
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user