Sha256: 96539208f0080e6162acdbd7a2c6340d7f5388bbf32dcf80cecc0ba0d4532894

Contents?: true

Size: 430 Bytes

Versions: 8

Compression:

Stored size: 430 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.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.45 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.45.pre3 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.45.pre2 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.45.pre db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.44 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.43 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.42 db/migrate/20230728014322_create_comee_core_products.rb
comee_core-0.1.41 db/migrate/20230728014322_create_comee_core_products.rb