Sha256: 39ac166c7beb2c4755401da18e8befe295b96f5512db3b0a6d3724624c79f195
Contents?: true
Size: 727 Bytes
Versions: 38
Compression:
Stored size: 727 Bytes
Contents
class CreateComeeCorePurchaseOrders < ActiveRecord::Migration[7.1] def change create_table :comee_core_purchase_orders do |t| t.string :po_number, null: false t.string :order_reference 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.float :total_price, default: 0 t.string :terms t.timestamps end add_index :comee_core_purchase_orders, :po_number, unique: true end end
Version data entries
38 entries across 38 versions & 1 rubygems