Sha256: 1f6f3e0b9bb51a5ef9ad073e0491e58265bc1af6327d55801505acf1b1766ff8
Contents?: true
Size: 1014 Bytes
Versions: 40
Compression:
Stored size: 1014 Bytes
Contents
class CreateComeeCoreClients < ActiveRecord::Migration[7.0] def change create_table :comee_core_clients do |t| t.references :user, null: true, index: {name: "user_on_ccc_indx"}, foreign_key: {to_table: :comee_core_users} t.string :code, null: false t.string :name, null: false t.string :address, null: false t.string :locale, null: false, default: "en" t.references :parent, null: true, index: {name: "so_on_ccc_indx"}, foreign_key: {to_table: :comee_core_clients} t.string :consignees, array: true, default: [] t.string :shipment_addresses, array: true, default: [] t.references :currency, null: true, index: {name: "currency_on_ccc_indx"}, foreign_key: {to_table: :comee_core_currencies} t.timestamps end add_index :comee_core_clients, :code, unique: true end end
Version data entries
40 entries across 40 versions & 1 rubygems