Initial commit of foodsoft 2
This commit is contained in:
commit
5b9a7e05df
657 changed files with 70444 additions and 0 deletions
18
db/migrate/012_create_order_clearing.rb
Normal file
18
db/migrate/012_create_order_clearing.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
class CreateOrderClearing < ActiveRecord::Migration
|
||||
|
||||
def self.up
|
||||
add_column :orders, :invoice_amount, :decimal, :precision => 8, :scale => 2, :null => false, :default => 0
|
||||
add_column :orders, :refund, :decimal, :precision => 8, :scale => 2, :null => false, :default => 0
|
||||
add_column :orders, :refund_credit, :decimal, :precision => 8, :scale => 2, :null => false, :default => 0
|
||||
add_column :orders, :invoice_number, :string
|
||||
add_column :orders, :invoice_date, :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :orders, :invoice_amount
|
||||
remove_column :orders, :refund
|
||||
remove_column :orders, :refund_credit
|
||||
remove_column :orders, :invoice_number
|
||||
remove_column :orders, :invoice_date
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue