Sha256: 498fa195cb4bfd73b661351488343cd7ad4d255a434c269595aa7d229491e4f6
Contents?: true
Size: 1009 Bytes
Versions: 73
Compression:
Stored size: 1009 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.string :customs_description, null: false t.boolean :leaf, null: false, default: true t.string :ancestry t.jsonb :preferred_units, null: false, default: [] t.float :weight t.references :weight_unit, null: true, index: {name: "wu_on_ccp_indx"}, foreign_key: {to_table: :comee_core_units} t.string :dimensions t.string :hs_code t.string :hs_description t.references :source, null: true, index: {name: "source_on_ccp_indx"}, foreign_key: {to_table: :comee_core_fulfillment_centers} t.timestamps end add_index :comee_core_products, :code, unique: true add_index :comee_core_products, :ancestry end end
Version data entries
73 entries across 73 versions & 1 rubygems