Sha256: f822146389bba117fa559d6e1797bcbe427da7e6f273d8fd899c75431c94a767
Contents?: true
Size: 590 Bytes
Versions: 45
Compression:
Stored size: 590 Bytes
Contents
class CreateComeeCoreClients < ActiveRecord::Migration[7.0] def change create_table :comee_core_clients do |t| t.references :user, null: false, 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.string :discount, null: false, default: 0 t.timestamps end add_index :comee_core_clients, :code, unique: true end end
Version data entries
45 entries across 45 versions & 1 rubygems