[#4181] Add a total field to deliverables.
This commit is contained in:
11
db/migrate/003_add_total_to_deliverables.rb
Normal file
11
db/migrate/003_add_total_to_deliverables.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class AddTotalToDeliverables < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :deliverables, :total, :decimal, :precision => 15, :scale => 2
|
||||
|
||||
add_index :deliverables, :total
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :deliverables, :total
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user