Files
redmine_contracts/db/migrate/015_create_fixed_budgets.rb
2010-09-09 15:57:58 -07:00

20 lines
406 B
Ruby

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