Sha256: fd443e15c032ec5a5f6f50ad3d4f9096b5aab043dbf3b70c97d56d945df4fed9
Contents?: true
Size: 616 Bytes
Versions: 94
Compression:
Stored size: 616 Bytes
Contents
class CreateOrders < ActiveRecord::Migration def change create_table :orders do |t| t.references :billing_address, :null => false t.references :shipping_address, :null => false t.references :user t.string :email, :null => false t.string :phone, :null => false t.decimal :total, :null => false t.decimal :total_due, :null => false t.decimal :tax_charge, :null => false t.string :status, :null => false t.timestamps end end end # Note: To force precision, alter column type in database console # Always use decimal when dealing with currency
Version data entries
94 entries across 94 versions & 1 rubygems