[#4420] Working on creating labor budgets for each retainer month.

This commit is contained in:
Eric Davis
2010-08-23 16:15:57 -07:00
parent f899b4e623
commit 7d43ab7d74
5 changed files with 125 additions and 26 deletions
@@ -0,0 +1,14 @@
class AddYearAndMonthToLaborBudgets < ActiveRecord::Migration
def self.up
add_column :labor_budgets, :year, :integer
add_index :labor_budgets, :year
add_column :labor_budgets, :month, :integer
add_index :labor_budgets, :month
end
def self.down
remove_column :labor_budgets, :year
remove_column :labor_budgets, :month
end
end
@@ -0,0 +1,14 @@
class AddYearAndMonthToOverheadBudgets < ActiveRecord::Migration
def self.up
add_column :overhead_budgets, :year, :integer
add_index :overhead_budgets, :year
add_column :overhead_budgets, :month, :integer
add_index :overhead_budgets, :month
end
def self.down
remove_column :overhead_budgets, :year
remove_column :overhead_budgets, :month
end
end