Sha256: 115812ed2b9358c0c88b6dca1105919e0b082f9b36563718f1533a6c0dcb0c79
Contents?: true
Size: 1.12 KB
Versions: 65
Compression:
Stored size: 1.12 KB
Contents
class CreateComeeCoreStockTransferRequests < ActiveRecord::Migration[7.1] def change create_table :comee_core_stock_transfer_requests do |t| t.string :reference_number, null: false t.date :reference_date, null: false, default: Date.current t.date :due_date, null: false t.string :remark t.references :from, null: false, index: {name: "from_on_ccstr_indx"}, foreign_key: {to_table: :comee_core_stores} t.references :to, null: false, index: {name: "to_on_ccstr_indx"}, foreign_key: {to_table: :comee_core_fulfillment_centers} t.integer :status, null: false, default: 0 t.references :initiated_by, null: false, index: {name: "initiated_by_on_ccstr_indx"}, foreign_key: {to_table: :comee_core_users} t.references :sales_order, null: false, index: {name: "so_on_ccstr_indx"}, foreign_key: {to_table: :comee_core_sales_orders} t.timestamps end end end
Version data entries
65 entries across 65 versions & 1 rubygems