Sha256: 6461108c8b53c94a1bb0b059786202461b8987b8c4ef56cfcff12f16e5822501
Contents?: true
Size: 472 Bytes
Versions: 3
Compression:
Stored size: 472 Bytes
Contents
# This migration comes from tb_commerce_engine (originally 20150409192945) class CreateTbCommerceCategories < ActiveRecord::Migration def change create_table :tb_commerce_categories do |t| t.string :title, :null => false t.string :slug, :null => false t.index :slug, :unique => true t.timestamps null: false end add_reference :tb_commerce_products, :tb_commerce_category, :null => true, :index => true, :foreign_key => true end end
Version data entries
3 entries across 3 versions & 1 rubygems