Sha256: 9844d240b5e2e4ca613833496230d6e595688c2c02b3dd85b78102ccc903253f

Contents?: true

Size: 372 Bytes

Versions: 2

Compression:

Stored size: 372 Bytes

Contents

class CreateOrderProducts < ActiveRecord::Migration[6.0]
  def change
    create_table :rails_marketplace_order_products do |t|
    	t.belongs_to :product, :index => true
      	t.belongs_to :order, :index => true
        t.belongs_to :seller, :index => true
      	t.integer :quantity
      	t.string :price

      t.timestamps null: false
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_marketplace-0.0.2 db/migrate/20161014013058_create_order_products.rb
rails_marketplace-0.0.1 db/migrate/20161014013058_create_order_products.rb