Sha256: 4a52001e463c907dced2a0dcb5947a229139fa2ff4f98bf7e047e2107292ff79
Contents?: true
Size: 1.3 KB
Versions: 38
Compression:
Stored size: 1.3 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 :match_code, null: false t.string :address, null: false t.string :locale, null: false, default: "en" t.string :tax_code t.string :vat_number 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.references :country, null: true, index: {name: "country_on_ccc_indx"}, foreign_key: {to_table: :comee_core_lookups} t.boolean :subsidiary, default: false t.timestamps end add_index :comee_core_clients, :code, unique: true end end
Version data entries
38 entries across 38 versions & 1 rubygems