Added percent fields and changed the setters on Deliverables to save the values. #1135

This commit is contained in:
Eric Davis
2008-05-21 10:17:26 -07:00
parent 1330740fa3
commit a9c8897ed4
3 changed files with 145 additions and 7 deletions
@@ -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