Sha256: 18e20dfe4bad2809bd3bdd68a81d68e42536d593ef68fba5750bfef78dc2d2c5

Contents?: true

Size: 240 Bytes

Versions: 4

Compression:

Stored size: 240 Bytes

Contents

class CreateProducts < ActiveRecord::Migration
  def change
    create_table :products do |t|
      t.string :name
      t.integer :shop_id
      t.integer :category_id
      t.string :slug

      t.timestamps null: false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slugs-4.0.0.3 test/dummy/db/migrate/20161016174202_create_products.rb
slugs-4.0.0.2 test/dummy/db/migrate/20161016174202_create_products.rb
slugs-4.0.0.1 test/dummy/db/migrate/20161016174202_create_products.rb
slugs-4.0.0.0 test/dummy/db/migrate/20161016174202_create_products.rb