Sha256: c06b89b6462293d064758f3f5ea13696c318796217a545fa1ebf6d6926df8f28
Contents?: true
Size: 423 Bytes
Versions: 5
Compression:
Stored size: 423 Bytes
Contents
class CreateProducts < ActiveRecord::Migration def change create_table :market_products do |t| t.text :name, null: false t.index :name t.decimal :price, null: false t.index :price t.text :sku, null: false t.references :category t.index :category_id t.foreign_key :market_categories, column: :category_id t.timestamps t.text :description end end end
Version data entries
5 entries across 5 versions & 1 rubygems