Sha256: df8c89d7207764413081ff9b34fc1595520a35509e45e2dee1e9317d639d1bbb

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

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 db/migrate/20160218232000_create_redshop_products.rb