Sha256: 6b553979a945e7493399f4733ff752278dc5341fe0301817eb1cfebf0741860c

Contents?: true

Size: 487 Bytes

Versions: 8

Compression:

Stored size: 487 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.boolean :leaf, null: false, default: true
      t.string :ancestry
      t.jsonb :preferred_units, null: false, default: []

      t.timestamps
    end
    add_index :comee_core_products, :code, unique: true
    add_index :comee_core_products, :ancestry
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
comee_core-0.1.53 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.52 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.51 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.50 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.49 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.48 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.47 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.46 db/migrate/20230728014322_create_comee_core_products.rb