Sha256: 0bb8ca126a0636032a774447ff50b8a4223a6aa023e036d9b726380fee818483

Contents?: true

Size: 527 Bytes

Versions: 10

Compression:

Stored size: 527 Bytes

Contents

class CreateComeeCorePurchaseOrders < ActiveRecord::Migration[7.1]
  def change
    create_table :comee_core_purchase_orders do |t|
      t.references :supplier,
                   null: false,
                   index: {name: "suppliers_on_ccpo_indx"},
                   foreign_key: {to_table: :comee_core_suppliers}
      t.date :order_date, default: Date.today
      t.integer :status, default: 0
      t.string :delivery_address, null: false
      t.date :delivery_date, null: false

      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
comee_core-0.2.44 db/migrate/20230728123823_create_comee_core_purchase_orders.rb
comee_core-0.2.43 db/migrate/20230728123823_create_comee_core_purchase_orders.rb
comee_core-0.2.42 db/migrate/20230728123823_create_comee_core_purchase_orders.rb
comee_core-0.2.41 db/migrate/20230728123823_create_comee_core_purchase_orders.rb
comee_core-0.2.40 db/migrate/20230728123823_create_comee_core_purchase_orders.rb
comee_core-0.2.39 db/migrate/20230728123823_create_comee_core_purchase_orders.rb
comee_core-0.2.38 db/migrate/20230728123823_create_comee_core_purchase_orders.rb
comee_core-0.2.37 db/migrate/20230728123823_create_comee_core_purchase_orders.rb
comee_core-0.2.36 db/migrate/20230728123823_create_comee_core_purchase_orders.rb
comee_core-0.2.35 db/migrate/20240325122723_create_comee_core_purchase_orders.rb