Sha256: 5d10f9743cebfeafe1d98f6bc7f29f7bd7d00a4a961ebe0ee717448fc165a859
Contents?: true
Size: 697 Bytes
Versions: 13
Compression:
Stored size: 697 Bytes
Contents
class CreateComeeCoreProducts < ActiveRecord::Migration[7.0] def change create_table :comee_core_products do |t| t.string :code, null: false t.string :name, null: false t.string :description t.jsonb :metadata t.references :product_type, null: false, index: {name: "ccpt_on_ccp_indx"}, foreign_key: {to_table: :comee_core_product_types} t.references :unit, null: false, index: {name: "unit_on_ccp_indx"}, foreign_key: {to_table: :comee_core_units} t.timestamps end add_index :comee_core_products, :code, unique: true end end
Version data entries
13 entries across 13 versions & 1 rubygems