Sha256: af0578ad9f3f207373f9ea02c4436b47c06886ee17c357efe0f14cc0c939ebe7
Contents?: true
Size: 286 Bytes
Versions: 1
Compression:
Stored size: 286 Bytes
Contents
class CreateShoppingCartDiscounts < ActiveRecord::Migration[5.0] def change create_table :shopping_cart_discounts do |t| t.string :code, index: true, null: false t.integer :amount, default: 0 t.belongs_to :order, index: true t.timestamps end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopping_cart-0.1.0 | db/migrate/20160811075244_create_shopping_cart_discounts.rb |