Sha256: eb2696205407d98f7f11dacc7a61c961b6b37e25e6dc5f18bc67a76fffbdbbce

Contents?: true

Size: 381 Bytes

Versions: 2

Compression:

Stored size: 381 Bytes

Contents

class CreateProducts < ActiveRecord::Migration[6.0]
  def change
    create_table :rails_marketplace_products do |t|
    	t.string :title, :index => true
    	t.text :description
    	t.string :images
    	t.decimal :price, :precision => 8, :scale => 2, :index => true
        t.integer :quantity
    	t.string :files

    	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/20161017232347_create_products.rb
rails_marketplace-0.0.1 db/migrate/20161017232347_create_products.rb