Sha256: b2a44b396d5861ff1901700032660e3ef0a158292b19f93a4f3cd00021e5b423

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 Bytes

Contents

class CreateErpProducts < ActiveRecord::Migration[7.0]
  def change
    create_table :erp_products do |t|
      t.string :external_id, null: false, index: { unique: true }
      t.string :name, null: false
      t.string :sku, null: false, index: { unique: true }
      t.references :erp_account, null: false, foreign_key: true

      t.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_bling-1.0.3 db/migrate/20230906142108_create_erp_products.rb
solidus_bling-1.0.2 db/migrate/20230906142108_create_erp_products.rb
solidus_bling-1.0.1 db/migrate/20230906142108_create_erp_products.rb
solidus_bling-1.0.0 db/migrate/20230906142108_create_erp_products.rb