Sha256: b729aa1ef7d3af16ec6f7047726c74f729e9752bdbaae187b51a1e0f1b17a70e
Contents?: true
Size: 1.03 KB
Versions: 47
Compression:
Stored size: 1.03 KB
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.boolean :subsidiary, default: false t.timestamps end add_index :comee_core_clients, :code, unique: true end end
Version data entries
47 entries across 47 versions & 1 rubygems