Sha256: bca5da115c502b6e4785641ba615851e36eee6dd344af09a060c629e877a5d3f
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
class CreateShoppingCartOrders < ActiveRecord::Migration[5.0] def change create_table :shopping_cart_orders do |t| t.decimal :total_price, precision: 7, scale: 2 t.string :state, default: 'in_progress' t.integer :step t.belongs_to :user, index: true t.belongs_to :shipping, index: true t.integer :order_items_count t.timestamp :completed_at t.timestamps end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopping_cart-0.1.0 | db/migrate/20160810063613_create_shopping_cart_orders.rb |