Sha256: 3ab8be461bd50889d5dfdcd74ce4587aba82cd862bc49de88cd5a5208fd2251c

Contents?: true

Size: 346 Bytes

Versions: 3

Compression:

Stored size: 346 Bytes

Contents

class CreateShoppyCartusOrderItems < ActiveRecord::Migration[5.1]
  def change
    create_table :shoppy_cartus_order_items do |t|
      t.decimal :price, precision: 5, scale: 2, null: false
      t.integer :quantity, null: false
      t.integer :product_id, index: true
      t.references :order, index: true
      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoppy_cartus-0.1.2 db/migrate/20180405195709_create_shoppy_cartus_order_items.rb
shoppy_cartus-0.1.1 db/migrate/20180405195709_create_shoppy_cartus_order_items.rb
shoppy_cartus-0.1.0 db/migrate/20180405195709_create_shoppy_cartus_order_items.rb