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

Version Path
comee_core-0.1.28 db/migrate/20230728123039_create_comee_core_clients.rb
comee_core-0.1.27 db/migrate/20230728123039_create_comee_core_clients.rb
comee_core-0.1.26 db/migrate/20230728123039_create_comee_core_clients.rb
comee_core-0.1.25 db/migrate/20230728123039_create_comee_core_clients.rb
comee_core-0.1.24 db/migrate/20230728123039_create_comee_core_clients.rb