[#4477] Added model and migration for FixedBudget.

This commit is contained in:
Eric Davis committed 2010-09-09 15:57:58 -07:00
1 parent d315252565
commit 7f7e5b3042
5 files changed
+37

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
class CreateFixedBudgets < ActiveRecord::Migration
def self.up
create_table :fixed_budgets do |t|
t.string :title
t.decimal :budget, :precision => 15, :scale => 4
t.string :markup
t.text :description
t.references :deliverable
t.timestamps
end
add_index :fixed_budgets, :deliverable_id
end
def self.down
drop_table :fixed_budgets
end
end