Sha256: 8c3c0bdbdcbe969743466b276caf4c9552928f55105a0a0e149f1d982d0f8359
Contents?: true
Size: 684 Bytes
Versions: 16
Compression:
Stored size: 684 Bytes
Contents
class CreateComeeCoreCustomerOrders < ActiveRecord::Migration[7.1] def change create_table :comee_core_customer_orders do |t| t.string :order_number, null: false t.date :order_date, null: false t.references :client, null: false, index: {name: "client_on_cccuo_indx"}, foreign_key: {to_table: :comee_core_clients} t.string :order_terms, null: false t.string :delivery_address, null: false t.string :invoice_address, null: false t.integer :status, null: false, default: 0 t.timestamps end add_index :comee_core_customer_orders, :order_number, unique: true end end
Version data entries
16 entries across 16 versions & 1 rubygems