Sha256: b0c4384cfadafc7a9a1caa349b379da7ff86da71ed647ad9443b487e62c4e8e4

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

# This migration comes from redshop (originally 20160218232000)
class CreateRedshopProducts < ActiveRecord::Migration
  def change
    create_table :redshop_products do |t|
      t.string :name
      t.text :desc
      t.integer :price
      t.float :rating
      t.references :category, index: true, foreign_key: true

      t.timestamps null: false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redshop-0.0.1 test/dummy/db/migrate/20160218232317_create_redshop_products.redshop.rb